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 » Roblox » Suggestions & Ideas
Home Search
 

Re: CameraScript defaults ModuleScript request

Previous Thread :: Next Thread 
cjcool12345 is not online. cjcool12345
Joined: 28 Jan 2010
Total Posts: 606
18 Feb 2016 03:55 AM
I would like to request a ModuleScript that is used by the RootCamera ModuleScript to provide default values (found on line 52, to line 59). By providing this module, it would allow for the RootCamera to be further modified without needing to replace the entire RootCamera. My use case for this is to slow down the camera's sensitivity after offsetting the camera to give the player the same amount of control from a farther distance.

I've included an example below.
CameraDefaults (inside CameraScript.RootCamera):
local CameraDefaults = {}

CameraDefaults.MinY = math.rad(-80)
CameraDefaults.MaxY = math.rad(80)
CameraDefaults.TouchSensitivity = Vector2.new(math.pi*2.25, math.pi*2)
CameraDefaults.MouseSensitivity = Vector2.new(math.pi*4, math.pi*1.9)
CameraDefaults.SeatOffset = Vector3.new(0,5,0)
CameraDefaults.HeadOffset = Vector3.new(0, 1.5, 0)

return CameraDefaults
Report Abuse
Graidlyz is not online. Graidlyz
Joined: 25 Dec 2011
Total Posts: 13357
18 Feb 2016 04:31 AM
"RootCamera"

never heard of that, you mean CurrentCamera?


Report Abuse
cjcool12345 is not online. cjcool12345
Joined: 28 Jan 2010
Total Posts: 606
18 Feb 2016 05:05 AM
The RootCamera is a ModuleScript that is a part of a LocalScript named CameraScript, it is automatically placed into the PlayerScripts (which is inside of each player) to control the camera. You can read more about it here: http://wiki.roblox.com/index.php?title=CameraScript
Report Abuse
Graidlyz is not online. Graidlyz
Joined: 25 Dec 2011
Total Posts: 13357
18 Feb 2016 05:27 AM
Ooh, that's a new feature right?

I'm pretty sure it didn't exist like 2 years ago


Report Abuse
JoseskVolpe is not online. JoseskVolpe
Joined: 23 Jul 2015
Total Posts: 54
18 Feb 2016 07:33 AM
support
I could use very less code lines with this feature here: http://www.roblox.com/games/273882451/Tornado-developing :3
Report Abuse
cjcool12345 is not online. cjcool12345
Joined: 28 Jan 2010
Total Posts: 606
18 Feb 2016 05:37 PM
The earliest occurrence that I could find for the CameraScript was the first edit of it's documentation on February 25, 2015. I can not verify when this feature was added.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » Suggestions & Ideas
   
 
   
  • 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