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

Why doesn't this cam-setting position local script work?

Asked by 9 years ago
game.Workspace:WaitForChild("CurrentCamera");
print("test1")
local Cam = game.Workspace.CurrentCamera;
print("test2.5")
local Pos = CFrame.new(-413.876099, -67.1133957, 15.660181, 0.447752953, -0.813180864, 0.371825784, -0, 0.415839374, 0.909438133, -0.89415741, -0.407203615, 0.186193272);
print("test2")
Cam.CameraType = ("Scriptable");
print("test3")
Cam.CoordinateFrame = Pos;

This is a stand-alone script. It is the WHOLE script, separated in a local script that is placed in StarterGui yet it doesn't work.

Why? No errors whatsoever and it does not print test1.

Answer this question