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

Camera Properties Help?

Asked by
utabon 5
9 years ago

I'm a rookie, sorry for asking such simple questions.

I'm trying to set the camera to a non movable state, then trying to set it to a position.

Heres the script:

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

Im confused :P?

Thanks for your help :)

0
Is this a Script or a LocalScript? BlueTaslem 18071 — 9y
0
You could just set the subject of the CurrentCamera to a part, and that part is where you want the CFrame to be. OniiCh_n 410 — 9y

1 answer

Log in to vote
2
Answered by
RoboFrog 400 Moderation Voter
9 years ago

You will want to load this camera script into the player through a local script. The easiest way to do so (and usually the best way until you get to more advanced code) is to place the (local) script into starterGUI, where it'll load into all players upon joining, without having to be called upon.

A helpful page you should look at can be found at this page. It's probably the most helpful source on any sort of camera manipulation to be found.

(Also, please use the Lua formatting button for code next time. In this instance, it doesn't matter much, but it really helps us when larger chunks of code are given!)

0
Thanks! :D utabon 5 — 9y
0
Happy to help! RoboFrog 400 — 9y
Ad

Answer this question