The output says: 'attempt to index nil with Play'
My code:
These are just the main parts (no ends because not needed for question)
local fireAnim = Instance.new('Animation') fireAnim.Parent = framework.viewmodel fireAnim.Name = 'Fire' fireAnim.AnimationId = framework.module.fireAnim fireAnim = framework.viewmodel.AnimationController.Animator:LoadAnimation(fireAnim) if input.UserInputType == Enum.UserInputType.MouseButton1 then fireAnim:Play() end