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

Why isn't my camera-setting position script working? (Two Line Script)

CurrentC = game.Workspace.CurrentCamera
CurrentC.CameraType = ("Scriptable")
CurrentC = CFrame.new(-188.173126, -187.572937, -91.4719162, 0.939729571, 0.158438265, -0.30299449, -0, 0.886159658, 0.463380009, 0.341918647, -0.435451895, 0.83275038)

Why isn't it working?

1 comment

0

Stop creating new questions. You can simply Edit your questions...

1 answer

You are setting the variable CurrentC, which doesn't cause anything to happen.

You mean to assign to the property CoordinateFrame:

CurrentC.CoordinateFrame = CFrame.new( ...

3 comments

0

It doesn't work, still the same thing. I have t his: CurrentC.CameraType = ("Scriptable") CurrentC.CoordinateFrame = CFrame.new(-188.173126, -187.572937, -91.4719162, 0.939729571, 0.158438265, -0.30299449, -0, 0.886159658, 0.463380009, 0.341918647, -0.435451895, 0.83275038)

0

What does "Doesn't work" mean. Have you done debugging. Is there an error. Have you tried doing a simple wait to the beginning if there's no output.

0

There's no error, I'll just post a full line of what my script entails: https://scriptinghelpers.org/questions/10840/why-cant-i-set-the-position-of-camera-on-my-script

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