Kaioj
|
  |
| Joined: 19 Apr 2013 |
| Total Posts: 126 |
|
|
| 13 May 2013 01:55 PM |
My friend and I are making an FPS and we need the camera to be in first person. Help?
print('FPS coming soon!') |
|
|
| Report Abuse |
|
Kaioj
|
  |
| Joined: 19 Apr 2013 |
| Total Posts: 126 |
|
| |
|
| 13 May 2013 02:20 PM |
| I think I have one in my models you can use, it restricts zooming out if memory serves well. |
|
|
| Report Abuse |
|
|
| 13 May 2013 02:21 PM |
function onPlayerSpawned(player, character) player.CameraMode = "LockFirstPerson" end
function onPlayerChatted(player, message, recipient) if player.userId == game.CreatorId and game.CreatorType == Enum.CreatorType.User then if message == "/thirdperson" then player.CameraMode = "Classic" elseif message == "/firstperson" then player.CameraMode = "LockFirstPerson" end end end
function onPlayerEntered(player) player.CharacterAdded:connect(function (char) onPlayerSpawned(player, char) end) player.Chatted:connect(function (msg, rec) onPlayerChatted(player, msg, rec) end)
player.CameraMode = "LockFirstPerson" end
game.Players.PlayerAdded:connect(onPlayerEntered)
|
|
|
| Report Abuse |
|