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

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

Asked by 9 years ago
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?

0
Stop creating new questions. You can simply Edit your questions... Shawnyg 4330 — 9y

1 answer

Log in to vote
1
Answered by
BlueTaslem 18071 Moderation Voter Administrator Community Moderator Super Administrator
9 years ago

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( ...
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) Bunnahnah 0 — 9y
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. BlueTaslem 18071 — 9y
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 Bunnahnah 0 — 9y
Ad

Answer this question