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
 

How do i make a FirstPersonLock script?

Previous Thread :: Next Thread 
Duckywow is not online. Duckywow
Joined: 24 Oct 2013
Total Posts: 6110
16 Jun 2014 04:50 PM
I am trying to make one of my games have FirstPersonLock, but i do not know what to
Put in a script to do it, any help?
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
16 Jun 2014 04:52 PM
game.Workspace.CurrentCamera.CameraType = "LockFirstPerson"
Report Abuse
Friaza is not online. Friaza
Joined: 26 Dec 2008
Total Posts: 6229
16 Jun 2014 04:54 PM
Player.CameraMode = Enum.CameraMode.LockFirstPerson

or

Player.CameraMode = "LockFirstPerson"


Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
16 Jun 2014 04:55 PM
or Player.CameraMode = 1
Report Abuse
Duckywow is not online. Duckywow
Joined: 24 Oct 2013
Total Posts: 6110
16 Jun 2014 04:56 PM
@Sensei
I put it in and it says this:
17:54:21.279 - maximum event re-entrancy depth exceeded
17:54:21.332 - An error occurred
Report Abuse
smiley599 is not online. smiley599
Joined: 23 Jan 2010
Total Posts: 21869
16 Jun 2014 04:57 PM
print'ducky is a noob'

I tested and it works
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
16 Jun 2014 04:57 PM
That's because of a recursive going for too long. That's your fault, his code is clean,
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
16 Jun 2014 04:58 PM
Cruelly, sensei's code is wrong anyways.
Report Abuse
Duckywow is not online. Duckywow
Joined: 24 Oct 2013
Total Posts: 6110
16 Jun 2014 05:01 PM
Oh i see
Report Abuse
Duckywow is not online. Duckywow
Joined: 24 Oct 2013
Total Posts: 6110
16 Jun 2014 05:01 PM
I also figured it out so i think i wont need any more help in this thread
Report Abuse
Friaza is not online. Friaza
Joined: 26 Dec 2008
Total Posts: 6229
16 Jun 2014 05:02 PM
I was going to point out that Sensei had mixed up CameraMode's and Player features, but yeah. Use mine.
Report Abuse
SenseiWarrior is not online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
16 Jun 2014 05:11 PM
Huh, mine used to work.
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