Today, I was experimenting around with some scripting and I crashed into an issue. CFrame.new() isn't working, however CFrame.Angles() is somehow working. My question is why won't the camera move to the designated location?

--In a LocalScript
local part = game.Workspace:WaitForChild('Legendary')
local camera = game.Workspace.CurrentCamera
camera.CameraType = 'Scriptable'
while true do
	camera.CFrame = CFrame.new(part.Position)
				  * CFrame.Angles(math.pi/math.random(45,90),math.pi/math.random(45,90),math.pi/math.random(45,90))
	wait(0.2)
end

1 comment

0

Are you sure that it gets the part properly?