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 Postition

Previous Thread :: Next Thread 
nPwn is not online. nPwn
Joined: 17 Sep 2010
Total Posts: 3197
11 Dec 2011 09:40 PM
Wiki says: It is possible to lock the camera to a position, if you set it's position or CFrame values to math.huge it will prevent the camera from moving. This can cause issues, or it may not work at all. Use with caution.

How would you do that?
Report Abuse
Riderj is not online. Riderj
Joined: 15 Aug 2011
Total Posts: 1534
11 Dec 2011 09:49 PM
9/10 times you will not get help with cameras on this forum. They are a pain to work with.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
11 Dec 2011 10:44 PM
Just use a loop to keep the CoordinateFrame in check:

while wait() do
camera.CoordinateFrame = CFrame.new(x, y, z)
end
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
11 Dec 2011 10:47 PM
while wait() do
camera.CoordinateFrame = CFrame.new(0, 0, 0)
camera.Focus = CFrame.new(math.huge, math.huge, math.huge)
end

If I remember correctly that was how you did it...
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
11 Dec 2011 10:48 PM
@Merlin
Why would you need to set the focus to math.huge? Just set it to the point you want the camera to look at.
Report Abuse
Merlin11188 is not online. Merlin11188
Joined: 20 Dec 2007
Total Posts: 4158
11 Dec 2011 10:51 PM
I remember that being really irritating to do because the camera could still vibrate (which was really really annoying), but setting the focus to math.huge broke something or other and gave scripts more control.
Love,
A 2 year-old memory.
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
11 Dec 2011 10:56 PM
It only vibrates if the player is spazzing their mouse while holding the right button.
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