Simple camera preview for animations

Animating but not working with Moon Animator? Creating cutscenes or first-person animations? Cannot preview them easily? I got you!!! With the following lines of code, you can simply preview animations from a specific part very easily!
Code:

local PreviewPart = 

game:GetService("RunService").Heartbeat:Connect(function()
	if workspace.CurrentCamera.CameraType == Enum.CameraType.Scriptable then
		workspace.CurrentCamera.CFrame = PreviewPart.CFrame
	end
end)

You can set the CameraType on Scriptable for the script to trigger! And back to the original CameraType to unlock! Press play and enjoy! :warning: Please don’t forget to fill the variable correctly, or the output will spam an error!

1 Like