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 » Scripters
Home Search
 

Re: First Person Lock

Previous Thread :: Next Thread 
MaxOaks is not online. MaxOaks
Joined: 12 Feb 2011
Total Posts: 96
03 Apr 2015 09:49 AM
I'm trying to make a script that will lock the player in first person camera mode as soon as they spawn. I've tried a couple different ways, but they aren't working.

game.Players.PlayerAdded:connect (function(plr)
plr.CameraMode = Enum.CameraMode.LockFirstPerson
end)

Can someone tell me what is wrong with this, or a correct way to lock first person?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
03 Apr 2015 09:52 AM
Change it in a localscript
Report Abuse
MaxOaks is not online. MaxOaks
Joined: 12 Feb 2011
Total Posts: 96
03 Apr 2015 10:49 AM
^ It is a local script. Where do I need to put it?
Report Abuse
KingJacko is not online. KingJacko
Joined: 20 Jun 2008
Total Posts: 3944
03 Apr 2015 10:49 AM
startergui
starterpack

either one
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
03 Apr 2015 10:50 AM
game.Players.PlayerAdded:connect(function(plr) does not work in LocalScripts.
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
03 Apr 2015 10:53 AM
player = game.Players.LocalPlayer

player.CameraMode = Enum.CameraMode.LockFirstPerson
Report Abuse
MaxOaks is not online. MaxOaks
Joined: 12 Feb 2011
Total Posts: 96
03 Apr 2015 10:54 AM
^ So do I need to make it a normal script?
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
03 Apr 2015 10:58 AM
No, localscript.
Report Abuse
MaxOaks is not online. MaxOaks
Joined: 12 Feb 2011
Total Posts: 96
03 Apr 2015 11:38 AM
^ thanks, that worked
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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