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

Camera Manipulation Help?

Asked by
utabon 5
9 years ago

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

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
9 years ago
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)
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) utabon 5 — 9y
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? Perci1 4988 — 9y
0
Sorry for the very late response, I've been busy. No, I dont get anything in the output. utabon 5 — 9y
0
Nothing else to fix then. Perci1 4988 — 9y
Ad

Answer this question