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: Changeing the CameraSubject!

Previous Thread :: Next Thread 
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
19 Aug 2013 09:51 AM
I have this, and it changes the camera subject, but I want it to still affect where the player is looking if you zoom in, and I need it so you can zoom in and out.


game.Workspace.Camera.CameraSubject = script.Parent.Sight
a=true
else
game.Workspace.Camera.CameraSubject = script.Parent.Parent.Head



You can test it yourself to see what my prob is its EXTREMLY Hard to explain.
Report Abuse
RoboTestGear is not online. RoboTestGear
Joined: 28 Dec 2009
Total Posts: 3063
19 Aug 2013 10:20 AM
Instead of head,
game.Workspace.Camera.CameraSubject = script.Parent.Parent.Humanoid
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
19 Aug 2013 10:31 AM
Thank you. But now I need a script that still lets you move your player, but makes the camera not move up,down or sideways.
Report Abuse
TheOneSwordfighter is not online. TheOneSwordfighter
Joined: 18 Feb 2013
Total Posts: 212
19 Aug 2013 10:33 AM
The camera always follows the subject if the mode is set to do so. Change the mode or change the cam type to Scriptable and do math.

while obamacare() do benefitMiddleClass() end --LuaWeaver
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
19 Aug 2013 10:34 AM
...
I know I need to change the camera type, but is there one that doesent let you move your mouse?
Report Abuse
TheOneSwordfighter is not online. TheOneSwordfighter
Joined: 18 Feb 2013
Total Posts: 212
19 Aug 2013 10:36 AM
"doesn't let you move your mouse?"

Um, no, and that's not what you've been asking for.

>makes the camera not move up,down or sideways.
^ nothing in there about the mouse

while obamacare() do benefitMiddleClass() end --LuaWeaver
Report Abuse
kingmatt2 is not online. kingmatt2
Joined: 20 Aug 2011
Total Posts: 6494
19 Aug 2013 10:39 AM
.. Im triyng to make gun sights, and I need it to point forward. I have the camera focus I want, but how do I keep it there without the person moveing it.
Report Abuse
yoshimaster240102 is not online. yoshimaster240102
Joined: 14 Apr 2012
Total Posts: 470
19 Aug 2013 10:49 AM
Do first person. Or look under 'mouse' in the wiki. There must be a way to lock 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