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 would you force First-Person on a player?

Previous Thread :: Next Thread 
BogyMac is not online. BogyMac
Joined: 04 Nov 2011
Total Posts: 823
12 Oct 2013 01:32 PM
Like the title says, how would you force a First-Person-Type view on a player? I've heard of a several methods, but which is the best?

Thanks for any help,
-Bogy
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
12 Oct 2013 01:33 PM
game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
Report Abuse
BogyMac is not online. BogyMac
Joined: 04 Nov 2011
Total Posts: 823
12 Oct 2013 01:34 PM
Thanks for the mini script. Also, how would you script it so that it forces First-person every time you join/respawn?
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
12 Oct 2013 01:38 PM
with said miniscript...

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
player.CameraMode = Enum.CameraMode.LockFirstPerson
end)
end)
Report Abuse
BogyMac is not online. BogyMac
Joined: 04 Nov 2011
Total Posts: 823
12 Oct 2013 01:39 PM
Thanks guys, I'll try that out now :D
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
12 Oct 2013 01:39 PM
You could put a LocalScript in the StarterPack and put

game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson

at the top of the script
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
12 Oct 2013 01:40 PM
@PRESTIGIOUSaLEGEND; that only runs when the player enters, not respawn.
Report Abuse
BogyMac is not online. BogyMac
Joined: 04 Nov 2011
Total Posts: 823
12 Oct 2013 01:44 PM
Thanks Ilill! It works PERFECTLY!
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
12 Oct 2013 01:50 PM
@ ilill

most stupid thing i have ever heard.

game.Players.PlayerAdded:connect(function(player) -- WHEN PLAYER JOINS
player.CharacterAdded:connect(function(character) -- WHEN PLAYER RESPAWNS
Report Abuse
IlIll is not online. IlIll
Joined: 28 Aug 2011
Total Posts: 896
12 Oct 2013 02:03 PM
Sorry, I didn't read the whole script; I only looked at the first line lol
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