Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

why doesnt this camera script work???

Asked by 9 years ago
1cam = game.Workspace.CurrentCamera
2 
3cam.CameraType = Enum.CameraType.Scriptable
4cam.CFrame = game.Workspace.CamHere.CFrame

this is all in a local script in starter gui, non-FE but it does not seem to work and no output errors are given.

1 answer

Log in to vote
1
Answered by 9 years ago

Here is what your problem is: You are: a) you have it in starter pack, it needs to be in starter guy, and b)

1local target = workspace.Part
2local camera = workspace.CurrentCamera
3camera.CameraType = Enum.CameraType.Scriptable
4camera.CameraSubject = target

You had a couple syntax errors. Hope this helps. :)

0
ooh thanks. QuantumToast 261 — 9y
0
but the subject part is not working. QuantumToast 261 — 9y
0
Hmm, I don't know why it wouldn't work, it doesn't work in studio but it does work in game for me. UltChowsk 85 — 9y
Ad

Answer this question