|
| 20 Feb 2014 06:58 PM |
I'm adding a FirstPerson Lock to my game, and i have a question.
Once adding it on there, the way i know to enable a FPS Lock, is by this.
game.Workspace.Players.LocalPlayer.CameraMode = blahblahblah.
Now, the blahblahblah part. Is what i need an answer for.
Originally, it's set to Classic, the only other alternative is LockFirstPerson.
Is LockFirstPerson a string, when entering it into the code. where it would be
game.Workspace.Players.LocalPlayer.CameraMode = "LockFirstPerson" or link...? |
|
|
| Report Abuse |
|
|
V0xels
|
  |
| Joined: 30 Mar 2012 |
| Total Posts: 2072 |
|
|
| 20 Feb 2014 07:00 PM |
WRONG WRONG WRONG!!!!
PLAYERS IS NOT LOCATED IN WORKSPACE!!!
game.Players.LocalPlayer.CameraMode = "LockFirstPerson"
Should work, but recently I heard there's a bug with the camera unless they fixed it in the recent update. |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2014 07:03 PM |
| THe glitch is 100% fixed.. |
|
|
| Report Abuse |
|
|
V0xels
|
  |
| Joined: 30 Mar 2012 |
| Total Posts: 2072 |
|
|
| 20 Feb 2014 07:04 PM |
| Oh, ok then yea what I said earlier should work than. |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2014 07:06 PM |
It's not a string, but you can use a string to set the value. The actual value is an Enum of type Enum.CameraMode.
So, "LockedFirstPerson" and Enum.CameraMode.LockedFirstPerson are both valid entries, but the latter is more formal. |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2014 07:07 PM |
In my previous post, change all instanced of "LockedFirstPerson" to "LockFirstPerson".
^_^ |
|
|
| Report Abuse |
|
|
V0xels
|
  |
| Joined: 30 Mar 2012 |
| Total Posts: 2072 |
|
|
| 20 Feb 2014 07:07 PM |
| Basically what FireFox said is 100% correct, Use whichever method you would like to. |
|
|
| Report Abuse |
|
|
|
| 20 Feb 2014 07:35 PM |
Wow, well. I've never approached Players before really.
LocalPlayers and all. I just do GUI's mainly.
Thanks guys! |
|
|
| Report Abuse |
|
|
V0xels
|
  |
| Joined: 30 Mar 2012 |
| Total Posts: 2072 |
|
|
| 20 Feb 2014 07:48 PM |
| It's alright, nobody is perfect at everything for script, even advanced scripters make mistakes (Not saying im advanced at all) |
|
|
| Report Abuse |
|
|