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 |
|
|
|
| 11 Feb 2012 09:44 PM |
| Delete the regular camera instance, I belive. |
|
|
| Report Abuse |
|
|
UFAIL2
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 6905 |
|
|
| 11 Feb 2012 10:01 PM |
Local Script:
game.Players.LocalPlayer.CameraMode = "LockFirstPerson" |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Feb 2012 02:28 PM |
| http://wiki.roblox.com/index.php/CameraMode_%28Property%29 |
|
|
| Report Abuse |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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 |
|
|
|
| 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 |
|
|