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: Locking First Person W/ Modified Camera

Previous Thread :: Next Thread 
Johnnyjohjohn is not online. Johnnyjohjohn
Joined: 24 Apr 2011
Total Posts: 63
07 Jun 2014 02:41 PM
I have some code that modifies the player camera:

local playerCam = workspace.CurrentCamera
playerCam.CameraSubject = game.Workspace.BoxCamera
playerCam.CoordinateFrame = workspace.BoxCamera.CFrame
playerCam.CameraType = "Attach"

I wish to force this modified camera into first person (so they player cant zoom out) but, I cannot figure out how to do so. Anyone know how I can do this?
Report Abuse
Johnnyjohjohn is not online. Johnnyjohjohn
Joined: 24 Apr 2011
Total Posts: 63
07 Jun 2014 04:02 PM
bump
Report Abuse
JimmyChance is not online. JimmyChance
Joined: 01 Nov 2009
Total Posts: 3681
07 Jun 2014 04:03 PM
game.Players.LocalPlayer.CameraMode = 1
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
07 Jun 2014 04:04 PM
FieldOfView
Report Abuse
youssef04 is not online. youssef04
Joined: 22 Jan 2011
Total Posts: 1745
07 Jun 2014 04:05 PM
Go away Transiate, well done on stealling 500k PP! I'm here to now ruin your reputation...
Report Abuse
transIate is not online. transIate
Joined: 20 Jun 2013
Total Posts: 2699
07 Jun 2014 05:50 PM
lol
Report Abuse
Johnnyjohjohn is not online. Johnnyjohjohn
Joined: 24 Apr 2011
Total Posts: 63
07 Jun 2014 06:40 PM
Setting the players camera mode to "LockFirstPerson" doesn't work and changing the FOV just makes the screen really wired.
Report Abuse
Wreckerbuster67 is not online. Wreckerbuster67
Joined: 29 Jul 2012
Total Posts: 1144
07 Jun 2014 06:42 PM
Change MaxActivation Distance and MinActivation Distance thingys into 0.5.
Report Abuse
Johnnyjohjohn is not online. Johnnyjohjohn
Joined: 24 Apr 2011
Total Posts: 63
07 Jun 2014 06:46 PM
This works when your doing it to the player but not when doing it with a new camera for some reason.
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