| |
|
| |
|
| |
|
| |
|
|
| 16 May 2013 07:34 PM |
| Yes. It can be converted to a Gui TextButton. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 16 May 2013 07:55 PM |
function onClicked() if game.Players.LocalPlayer.CameraMode == 0 then game:GetService('Players').LocalPlayer.CameraMode = 1 end end
script.Parent.MouseButton1Down:connect(OnClicked)
--Maybe. Not totally sure. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 16 May 2013 08:02 PM |
player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function(gui) if player.CameraMode == "Classic" then player.CameraMode = "LockFirstPerson" end end)
Put that in a text button. |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2013 08:05 PM |
| That output is not related to your script. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
|
| 16 May 2013 08:07 PM |
| Local script and are you sure you're putting it into a text button? |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 May 2013 08:14 PM |
Your if statement is false. I think the original camera is "Custom". Not "Classic".
Have it print the Players camera Type. |
|
|
| Report Abuse |
|
|
noah
|
  |
| Joined: 11 Sep 2006 |
| Total Posts: 18977 |
|
| |
|
| |
|