|
| 22 Jun 2016 09:36 PM |
but when it goes black it has a cframe that looks something like this
0,4.5,0,NAN,NAN,NAN,NAN,NAN,NAN,NAN,NAN,NAN
how do i detect when this happens (via localscript)? |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 09:45 PM |
| It does this on its own without any scripts being run? |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 10:36 PM |
a script moves the camera slowly to the direction the mouse is pointing
but sometimes when i test the game the camera goes black |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 10:37 PM |
| Sounds like you're passing invalid numbers to the camera's CFrame. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 10:43 PM |
here is the only piece of the script that modifies the camera
while char_cam and wait() do local head = char.Head local ex = head.Position + mouse.hit.lookVector * 0.5 cam:Interpolate(CFrame.new(head.Position),CFrame.new(ex),.05) end
there's no error message or anything
but here's what i got when i printed the CFrame of the cam
> print(workspace.CurrentCamera.CFrame) 6.5765655e-16, 4.5, -3.23544923e-12, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN, NAN |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 10:44 PM |
Use this,
WHILE THRUSE DO, Add script.parent. Camera :function no black :activate THRUSE
End |
|
|
| Report Abuse |
|
|
| |
|
|
| 22 Jun 2016 11:06 PM |
| Yup, see thruse code works |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 11:14 PM |
ok then. lets list some things why you shouldnt be here
1. You can't build without free models. 2. Spam "thruse" everywhere 3. Supply people with misleading people 4. Unhelpful and annoying
Now, I'm going to say it again. There's the door. |
|
|
| Report Abuse |
|
|
|
| 22 Jun 2016 11:14 PM |
| Yeah,my he door to THRUSE CODE |
|
|
| Report Abuse |
|
|