|
| 14 Aug 2014 07:03 PM |
Hey, I'm making an intro to a game, and use the following lines to change ones camera subject:
function setNewCameraTarget(target) cam.CameraSubject = target cam.CoordinateFrame = target.CFrame end
cam.CameraType = Enum.CameraType.Scriptable
This works perfectly fine and does not need editing. I then use this button, when clicked puts the camera back to normal:
script.Parent.MouseButton1Click:connect(function() Load = player.Backpack.LoadCharacter gui:Destroy() Load.Disabled = false workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Head workspace.CurrentCamera.CameraType = Enum.CameraType.Track end)
This also works, but when I respawn, my camera is no longer attached to my head. How would I go about fixing this? Thanks. |
|
|
| Report Abuse |
|
|
zakarq
|
  |
| Joined: 10 Oct 2010 |
| Total Posts: 883 |
|
|
| 14 Aug 2014 07:05 PM |
| When a player re spawns, you reset the camera? |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Aug 2014 07:08 PM |
| No, it respawns the character, fixes the camera. But when you reset again, the camera breaks. |
|
|
| Report Abuse |
|
|