bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
|
| 14 Aug 2015 12:52 AM |
I made a loading screen that enables the entering player to choose a team and the camera rotates based off of the team selected. However, I use a remote event every time a person chooses a team which does this: local Camera = workspace.CurrentCamera Camera.CameraType = "Custom" Camera.CameraSubject = Character.Humanoid print(Camera.CameraType, Camera.CameraSubject) It prints out the humanoid and the CameraType correctly and there are no erorrs, but the camera is still stuck in the position that I tweened it to for the team selecting GUI. Any clue as to what I'm doing wrong? I also tried executing the function every time the script is given to the player, but the same thing happened and I figured the use of the event was more efficient. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Aug 2015 01:00 AM |
post the rest of the code of the camera movement
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
|
| 14 Aug 2015 01:08 AM |
function TweenCamera(NewFrame ,NewFocus) Camera.CoordinateFrame = NewFrame Camera.Focus = NewFocus Camera.CoordinateFrame = CFrame.new(Camera.CoordinateFrame.p,Camera.Focus.p) end |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Aug 2015 01:17 AM |
Did you ever change the camera subject when tweening?
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
|
| 14 Aug 2015 01:19 AM |
| No, I only changed the camera type to Scriptable. |
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
|
| 14 Aug 2015 01:20 AM |
| It works perfectly in studio. |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Aug 2015 01:22 AM |
You probably need to wait for something, or just change the camera coordinate frame back...
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
|
| 14 Aug 2015 01:26 AM |
| Change the coordinate frame to? |
|
|
| Report Abuse |
|
|
bomblover
|
  |
| Joined: 23 Mar 2011 |
| Total Posts: 238 |
|
| |
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 14 Aug 2015 03:21 AM |
Its hard to tell. I don't know what you are changing the cameras position to. I still need alot more code that deals with the camera to see what might be the problem.
"Talk is cheap. Show me the code." - Linus Torvalds |
|
|
| Report Abuse |
|
|