Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why doesnt this camera script work???

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

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. :)

3 comments

0

ooh thanks.

0

but the subject part is not working.

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.

This discussion is preserved as it was. New answers, comments, and votes are closed.