I am trying to make a box animation play thru scripts.
Unfortunately the animation won’t play. I followed roblox docs.
local animator = workspace.BoxWhole.BoxModel.AnimationController.Animator
local closeAnim : Animation = Instance.new("Animation")
closeAnim.AnimationId = "rbxassetid://136211195768388"
local openAnim : Animation = Instance.new("Animation")
openAnim.AnimationId = "rbxassetid://78348468406182"
local closeTrack = animator:LoadAnimation(closeAnim)
local openTrack = animator:LoadAnimation(openAnim)
openTrack:Play()
There are no errors or anything printed in the output.
Here is the explorer view:
What can I do?