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: This LocalScript in StarterGUI.

Previous Thread :: Next Thread 
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
09 Feb 2014 06:28 AM
Why does this script only put you in first person when you join the game? I want it to always be in first person.


wait(1)
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
09 Feb 2014 06:35 AM
??
Report Abuse
iConjurer is not online. iConjurer
Joined: 25 Oct 2013
Total Posts: 2320
09 Feb 2014 06:42 AM
wait(1)
game.Players.LocalPlayer.CameraMode = "Classic"
wait()
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
Report Abuse
thetacah is not online. thetacah
Joined: 18 Jan 2013
Total Posts: 16026
09 Feb 2014 06:48 AM
Uhmmm, why do that; my other script worked but only when I joined. QQ
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
09 Feb 2014 06:54 AM
LocalScript:

game.Players.PlayerAdded:connect(function(plr)
wait(1)
plr.CameraMode = Enum.CameraMode.LockFirstPerson
end)
Report Abuse
iConjurer is not online. iConjurer
Joined: 25 Oct 2013
Total Posts: 2320
09 Feb 2014 08:18 AM
@The Because when you respawn, it still claims you're in LockFirstPerson.
Resetting it would make it work. Trust me. I've dealt with this before.
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
09 Feb 2014 09:37 AM
No I don't think so.

CameraMode is an Enum, you didn't use Enum.CameraMode so you clearly haven't
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
09 Feb 2014 10:34 AM
game.Players.PlayerAdded:connect(function(p)
p.CameraMode = "LockFirstPerson"
end)
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