Hello, recently I've run into a problem where a script I made that plays an idle animation only plays in studio, which is technically FE turned off, and not in the normal play. I don't know what's wrong. Here is the script:
local character = script.Parent
local humanoid = character.Humanoid
local prevanim = nil
function playAnim(animation)
if prevanim ~= nil then
prevanim:Stop()
end
prevanim = humanoid:LoadAnimation(animation)
prevanim:Play()
end
playAnim(script.idle.IdleAnim)
Any help/feedback would be great! Thanks!
