#how to export the camera to make a cutscene in moon animator

1 messages · Page 1 of 1 (latest)

urban axle
#

I have an animation with a camera in Moon Animator, but when I export the animation to Rig, the camera keyframes don't go along. How do I create cutscenes with Moon Animator?

sand lake
somber lynxBOT
#

studio** You are now Level 1! **studio

sand lake
#

Also your script for your camera should be

#

StarterPlayer pack > StarterPlayerScripts > YourCameraScript [ LOCAL SCRIPT ]

#

then assuming you've got the other parts of your script down

#

Set your variables

local cf = game.ReplicatedStorage.Cutscene
local CurrentCamFrame = workspace.CurrentCamera.CFrame```

# Set your camera to scriptable
```lua
Camera.CameraType = Enum.CameraType.Scriptable```

# Turn autorotate for your humanoid to false
```lua
Args.Character.Humanoid.AutoRotate = false```

# Then set your camera cframe data into the cframe animation
```lua
Con = game:GetService("RunService").RenderStepped:Connect(function(DT)

  ft *= (DT*60)
  local idkm = cf.Frames:FindFirstChild(tonumber(math.ceil(ft)))
  
  if idkm then
    Camera.CFrame = Args.Character.HumanoidRootPart.CFrame * idkm.Value
  else
    Connection:Disconnect()
    Args.Character.Humanoid.AutoRotate = true
Camera.CameraType = Enum.CameraType.Custom
Cmaera.CFrame = CurrentCamFrame
end```