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
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 03 Apr 2015 09:52 AM |
| Change it in a localscript |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 20 Jun 2008 |
| Total Posts: 3944 |
|
|
| 03 Apr 2015 10:49 AM |
startergui starterpack
either one |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2015 10:50 AM |
| game.Players.PlayerAdded:connect(function(plr) does not work in LocalScripts. |
|
|
| Report Abuse |
|
|
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
|
  |
| 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
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
MaxOaks
|
  |
| Joined: 12 Feb 2011 |
| Total Posts: 96 |
|
| |
|