1Juice1
|
  |
| Joined: 03 Jul 2014 |
| Total Posts: 108 |
|
|
| 17 Jul 2014 12:13 AM |
I'm new to ROBLOX, and I can't figure out why this doesn't work. Nothing in the output, it just doesn't happen. I have this code placed inside a localscript inside the player's StarterGui:
game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
What am I doing wrong? Is there something i'm forgetting? |
|
|
| Report Abuse |
|
|
Fidgeting
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 1193 |
|
| |
|
|
| 17 Jul 2014 12:17 AM |
wait(2) game:GetService('Players').LocalPlayer.CameraMode = Enum.CameraMode.LockFirstPerson
try that |
|
|
| Report Abuse |
|
|
Fidgeting
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 1193 |
|
|
| 17 Jul 2014 12:18 AM |
'wait(2)'
LOLOLOL
you only added a wait time. no differences |
|
|
| Report Abuse |
|
|
1Juice1
|
  |
| Joined: 03 Jul 2014 |
| Total Posts: 108 |
|
| |
|
BLOXLUA
|
  |
| Joined: 16 Mar 2013 |
| Total Posts: 453 |
|
|
| 17 Jul 2014 12:19 AM |
game.Players.LocalPlayer.CameraMode="Classic" game.Players.LocalPlayer.CameraMode="LockFirstPerson"
--Works for me like this. |
|
|
| Report Abuse |
|
|
1Juice1
|
  |
| Joined: 03 Jul 2014 |
| Total Posts: 108 |
|
|
| 17 Jul 2014 12:24 AM |
Problem solved! Using this code inside Localscript in StarterPack fixed it:
wait(2) game.Players.LocalPlayer.CameraMode="Classic" game.Players.LocalPlayer.CameraMode="LockFirstPerson" |
|
|
| Report Abuse |
|
|
Fidgeting
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 1193 |
|
|
| 17 Jul 2014 12:25 AM |
| you could've just used your original code and have placed the localscript in starterpack lol |
|
|
| Report Abuse |
|
|
1Juice1
|
  |
| Joined: 03 Jul 2014 |
| Total Posts: 108 |
|
|
| 17 Jul 2014 12:27 AM |
| Probably, but it turns out I need to let it wait a second or two to let the camera load on slower computers (Really bad pc) or something like that. Dunno, but thanks for the help! |
|
|
| Report Abuse |
|
|
Fidgeting
|
  |
| Joined: 08 Feb 2014 |
| Total Posts: 1193 |
|
|
| 17 Jul 2014 12:28 AM |
| well, i don't have those problems, so i never use wait() times just for a script to start doing its business. |
|
|
| Report Abuse |
|
|