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: How to Lock First Person?

Previous Thread :: Next Thread 
mercmonster is not online. mercmonster
Joined: 25 Dec 2012
Total Posts: 75
03 Jan 2013 05:20 PM
Hey! Thanks for everyone's help so far. I wish there was a reputation system or something so I could up your rep.

Anyways, another question - what type of script or what do I need to do to lock it in first person camera mode? Thank you!
Report Abuse
thecaptain97 is not online. thecaptain97
Joined: 17 Jun 2010
Total Posts: 4987
03 Jan 2013 05:21 PM
repeat wait() until game.Players.LocalPlayer.Character~=nil
repeat wait() until game.Players.LocalPlayer.Character:findFirstChild("Humanoid")

game.Players.LocalPlayer.CameraMode="LockFirstPerson"
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
03 Jan 2013 05:21 PM
I use a LocalScript but I believe both types would work.

Player.CameraMode = "LockFirstPerson"
Report Abuse
Blues714 is not online. Blues714
Joined: 23 Dec 2008
Total Posts: 6507
03 Jan 2013 05:23 PM
Player.CameraMode = "LockFirstPerson"
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
03 Jan 2013 05:24 PM
@agent
do u know dat property that hides all the other player's name from the original player's view?
Report Abuse
AgentFirefox is not online. AgentFirefox
Top 100 Poster
Joined: 20 Jun 2008
Total Posts: 22404
03 Jan 2013 05:24 PM
It's a property of the Humanoid object.
I can't remember what it's called.
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
03 Jan 2013 05:32 PM
i found it, thanks :D
Report Abuse
mercmonster is not online. mercmonster
Joined: 25 Dec 2012
Total Posts: 75
03 Jan 2013 05:48 PM
Thanks guys, but where do I put this exactly? Huge noob here.
Report Abuse
Blues714 is not online. Blues714
Joined: 23 Dec 2008
Total Posts: 6507
03 Jan 2013 05:50 PM
Put it in a script, and put the script into the starterpack
Report Abuse
noah is not online. noah
Joined: 11 Sep 2006
Total Posts: 18977
03 Jan 2013 05:50 PM
r u trying to switch there cameramode to lockfirstperson when they enter the server?
Report Abuse
mercmonster is not online. mercmonster
Joined: 25 Dec 2012
Total Posts: 75
03 Jan 2013 06:31 PM

Yeah, I want it to be restricted to first person.

And sorry guys, I'm still having trouble. I've clicked the starterpack, added the script object (also tried local script), and I pasted Player.CameraMode = "LockFirstPerson" in to the script, and it still won't work. Am I doing something wrong?
Report Abuse
MantarayJack is not online. MantarayJack
Joined: 22 Dec 2012
Total Posts: 183
03 Jan 2013 06:36 PM
In a LocalScript:

game.Players.LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
Report Abuse
LUVMARIOLUIGI10000 is not online. LUVMARIOLUIGI10000
Joined: 16 May 2009
Total Posts: 1244
03 Jan 2013 06:40 PM
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function()
player.CameraMode = Enum.CameraMode.LockFirstPerson
end)
end)

~LUV, LuaLearners Teacher(+3)~
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