I am currently confused on why my animation script works in studio yet not in game. I have tried anchoring and unanchoring my characters, restarting the servers and publishing my game a couple of times. Each time it does not work.
This is the script I am using:
local hum = script.Parent:WaitForChild("Humanoid") local anim = hum:LoadAnimation(script:FindFirstChildOfClass("Animation")) anim.Looped = true anim:Play()
I made my animation in Moon Animator, which I looped when making. Apologies if this is an easy fix, I do not know much about programming.