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

Camera Manipulation Help?

This script is in a local script in starter gui.

game.Workspace.CurrentCamera.CameraType = "Scriptable"
game.Workspace.CurrentCamera.CameraType = CFrame.new(18.1, 161.7, 34)

Sorry that this is such a basic quesiton.

Your help is much appreciated :)

1 answer

game.Workspace.CurrentCamera.CameraType = CFrame.new(18.1, 161.7, 34) 

CameraType isn't a CFrame value. I think you mean CoordinateFrame.

--This should work
game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(18.1, 161.7, 34)

4 comments

0

Opps! That was just a typo I made on the website. I actually have that script you posted in a local the script. It still doesn't work though ...(I dont know how to do LUA in a reply) game.Workspace.CurrentCamera.CameraType = "Scriptable" game.Workspace.CurrentCamera.CoordinateFrame = CFrame.new(18.1, 161.7, 34)

0

Well that's the only problem with your code. You could try waiting a few seconds before setting the camera, but that's not a real solution. If this is a LocalScript in StarterGui, and it's not disabled, then to further help we need more code or output errors. Do you get any errors or warnings in the output?

0

Sorry for the very late response, I've been busy. No, I dont get anything in the output.

0

Nothing else to fix then.

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