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: I haven't been paying attention to updates at all

Previous Thread :: Next Thread 
Aaaboy97 is not online. Aaaboy97
Joined: 05 Apr 2009
Total Posts: 6612
11 Feb 2012 09:43 PM
How do you force first person upon a player?
Report Abuse
Quentonious is not online. Quentonious
Joined: 26 Sep 2008
Total Posts: 3036
11 Feb 2012 09:44 PM
Delete the regular camera instance, I belive.
Report Abuse
UFAIL2 is not online. UFAIL2
Joined: 14 Aug 2010
Total Posts: 6905
11 Feb 2012 10:01 PM
Local Script:

game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
Report Abuse
jaredvaldez4 is not online. jaredvaldez4
Joined: 06 Jul 2008
Total Posts: 4239
19 Feb 2012 02:25 PM
Wondering the same thing?
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
19 Feb 2012 02:28 PM
http://wiki.roblox.com/index.php/CameraMode_%28Property%29
Report Abuse
jaredvaldez4 is not online. jaredvaldez4
Joined: 06 Jul 2008
Total Posts: 4239
19 Feb 2012 02:29 PM
How would i do this?
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
19 Feb 2012 02:31 PM
Added an example to the wiki page.

http://wiki.roblox.com/index.php?title=CameraMode_(Property)&stable=0&redirect=no
Report Abuse
jaredvaldez4 is not online. jaredvaldez4
Joined: 06 Jul 2008
Total Posts: 4239
19 Feb 2012 02:38 PM
So like this?

function playerEntered(player)

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

game.Players.ChildAdded:connect(playerEntered)
Report Abuse
jaredvaldez4 is not online. jaredvaldez4
Joined: 06 Jul 2008
Total Posts: 4239
19 Feb 2012 02:40 PM
Not working...
Report Abuse
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
19 Feb 2012 02:48 PM
I belive it would be this:
function playerEntered(player)

player.CameraMode = Enum.CameraMode.LockFirstPerson
end

game.Players.ChildAdded:connect(playerEntered)
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
19 Feb 2012 02:58 PM
It must be used in a LocalScript. You can't use it in a normal script.

I suggest just putting the LocalScript in the StarterPack or the StarterGui.
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