For the past few days, I’ve been working on a horror game with a flashlight system that I’m quite proud of. However, there’s been a small issue with it. I’ve been trying to play animations on my flashlight model (yes, I’ve added WeldConstraints and Motor6Ds to get it functioning in the animation editor). The animation plays PERFECTLY in the animation editor, however, it does NOT play at all in-game. I’m not sure what I’m doing wrong, I’m loading the animation onto the AnimationController’s Animator and playing the animation, yet it does not work.
Edit: Also, the “Script” instance under the Flashlight model served as a test to see if it would play, I have tried it with a LocalScript, yet it does not work.
There’s no animation priotity on the animation, as there aren’t any other animations playing. I will try applying an AnimationPriority to see if it works. Script-wise, I made this basic one just to try and see if it works, as loading into my game and waiting for the game to fully load is time consuming.
Edit: AnimationPriotity does not work or change anything.
--// test animation for flashlight model
local animator = script.Parent.AnimationController.Animator
local up = script.Up
local down = script.Down
local upAnim = animator:LoadAnimation(up)
local downAnim = animator:LoadAnimation(down)
while task.wait(2) do
downAnim:Play()
task.wait(downAnim.Length)
print("running....")
downAnim:Stop()
end
Yes, I’m the owner of the animation, and yes, it does print “running” every couple of seconds. It clearly knows the animation exists, as it prints after the length of the animation has passed, but it isn’t playing… which is really weird.