sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 19 Oct 2015 09:32 PM |
| I have a script where the camera is circling around a object, and a button appears. When they click the button, I want the camera go back to normal, (Viewing the player). Any help? |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 20 Oct 2015 06:27 PM |
Set the camera from scriptable to the default. Set the camera's subject to the player |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 20 Oct 2015 06:47 PM |
This didnt work, what do I do?
function Click() local camera = workspace.CurrentCamera camera.CameraSubject = game.Players.LocalPLayer end
script.Parent.MouseButton1Click:connect(Click) |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
| |
|
|
| 20 Oct 2015 07:03 PM |
function Click() local camera = workspace.CurrentCamera camera.CameraSubject = game.Players.LocalPlayer end
script.Parent.MouseButton1Click:connect(Click)
You wrote "LocalPLayer" Its actually "LocalPlayer" |
|
|
| Report Abuse |
|
|
sal212
|
  |
| Joined: 11 Apr 2010 |
| Total Posts: 2929 |
|
|
| 20 Oct 2015 07:06 PM |
| Still not working, I think its because of my other camera script, which circles around someting for the intro. |
|
|
| Report Abuse |
|
|