Airennor
|
  |
| Joined: 31 Oct 2012 |
| Total Posts: 1607 |
|
|
| 31 Dec 2013 12:43 AM |
So this works perfectly in play solo mode but online when I enter the game it does not go where I coordinate but, it works after death. Why is that?
workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0) workspace.CurrentCamera.Camera.CameraType = "Scriptable"
workspace.CurrentCamera.Camera.Focus = CFrame.new(5, -340, 0) --- Should I add this to the second line? |
|
|
| Report Abuse |
|
|
Airennor
|
  |
| Joined: 31 Oct 2012 |
| Total Posts: 1607 |
|
|
| 31 Dec 2013 12:44 AM |
Whoops... sorry my bad. Here:
workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0) workspace.CurrentCamera.CameraType = "Scriptable"
workspace.CurrentCamera.Focus = CFrame.new(5, -340, 0) --- Should I add this to the second line?
I added camera twice for some reason but still having problem.
|
|
|
| Report Abuse |
|
|
|
| 31 Dec 2013 12:45 AM |
| Try adding a wait() at the beginning of the script. |
|
|
| Report Abuse |
|
|
Airennor
|
  |
| Joined: 31 Oct 2012 |
| Total Posts: 1607 |
|
|
| 31 Dec 2013 12:47 AM |
| Did that no change, should I put a amount of my choice? |
|
|
| Report Abuse |
|
|
Slewth
|
  |
| Joined: 09 Jul 2012 |
| Total Posts: 5951 |
|
|
| 31 Dec 2013 12:54 AM |
Here:
game.Workspace.CurrentCamera.CoordinateFrame = Vector3.new(5, -340, 0) game.Workspace.CurrentCamera.CameraType = "Scriptable" |
|
|
| Report Abuse |
|
|
Airennor
|
  |
| Joined: 31 Oct 2012 |
| Total Posts: 1607 |
|
|
| 31 Dec 2013 01:15 AM |
That did not work.
I tried what you did with Vector3
then I switched to CFrame I don't get why this does not work when entering a game but when you respawn it works fine... |
|
|
| Report Abuse |
|
|
Airennor
|
  |
| Joined: 31 Oct 2012 |
| Total Posts: 1607 |
|
| |
|
Airennor
|
  |
| Joined: 31 Oct 2012 |
| Total Posts: 1607 |
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 31 Dec 2013 01:41 AM |
I'm pretty sure the Camera has to be scriptable first.
game.Workspace.CurrentCamera.CameraType = "Scriptable" game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0) |
|
|
| Report Abuse |
|
|
| |
|
|
| 31 Dec 2013 01:57 AM |
repeat wait() until game.Workspace.CurrentCamera -- do stuff |
|
|
| Report Abuse |
|
|
|
| 31 Dec 2013 02:19 AM |
game.Players.PlayerAdded:connect(function(cam) workspace.CurrentCamera.CoordinateFrame = CFrame.new(5, -340, 0) workspace.CurrentCamera.Camera.CameraType = "Scriptable" end)
try this maybe? idk if it will work, havent tested it |
|
|
| Report Abuse |
|
|