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 8 years ago
cam = game.Workspace.CurrentCamera

cam.CameraType = Enum.CameraType.Scriptable
cam.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 8 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)

local target = workspace.Part
local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CameraSubject = target

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

0
ooh thanks. QuantumToast 261 — 8y
0
but the subject part is not working. QuantumToast 261 — 8y
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 — 8y
Ad

Answer this question