jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 30 Apr 2016 09:12 PM |
Here is my current script:
tb = script.Parent.TextButton tb.MouseButton1Down:connect(function() cam = game.workspace.CurrentCamera:clone() cam.Parent = game.Workspace cam.CameraType = "Watch" game.workspace.CurrentCamera.CameraSubject = script.Parent.Parent game.workspace.CurrentCameraFieldOfView = 20 wait(3) cam.CameraSubject = game.Players.LocalPlayer.Character.Humanoid cam.FieldOfView = 70 game.Workspace.CurrentCamera.CameraSubject=game.Players.LocalPlayer.Character.Humanoid game.Workspace.CurrentCamera:Remove() game.Workspace.CurrentCamera = cam end)
The idea is that the camera focuses on the part for 3 seconds when the TextButton is clicked and then returns to the player's camera. This script is not working. How would I fix this?
|
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
| |
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 30 Apr 2016 10:24 PM |
I dont think you can just set their camera like that lol game.Workspace.CurrentCamera = cam
|
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 30 Apr 2016 10:26 PM |
| Ok, what would be the correct way? |
|
|
| Report Abuse |
|
|
dave2011
|
  |
| Joined: 02 Oct 2010 |
| Total Posts: 10581 |
|
|
| 30 Apr 2016 10:27 PM |
manipulate their camera and then set it back to the default whatever that is, without cloning the camera, just use the currentcamera
|
|
|
| Report Abuse |
|
|
jager72
|
  |
| Joined: 14 Aug 2010 |
| Total Posts: 11034 |
|
|
| 30 Apr 2016 10:33 PM |
| But how would I actually script it so that the camera is focused on the part? |
|
|
| Report Abuse |
|
|
|
| 30 Apr 2016 11:46 PM |
| camera has properties to ya know. |
|
|
| Report Abuse |
|
|