I have been working on an RPG game for a while now, and recently a "glitch" has popped up, making my animations not work at all, there is no output error NOW but the first time the glitch happened it said something the lines of "LoadAnimation requires the humanoid object (EzioEE.Humanoid.) to be a descendant of the game object. This was in the client, when I transferred it to server, it said that the animation cannot be loaded, after I added some waitforchild's to the script there is no output, and the script doesnt break it continues.
local animationList = { "rbxassetid://3054889435"; "rbxassetid://3060546392"; "rbxassetid://3060918785"; } Tool.Activated:Connect(function() if Debounce and Char then if equipped == false then return end Debounce = false Count.Value = Count.Value + 1 if Count.Value > #animationList then Count.Value = 0 print("a") else swingHolder.AnimationId = animationList[Count.Value] end local LoadAnime = Char:WaitForChild("Humanoid"):LoadAnimation(swingHolder) print(LoadAnime) LoadAnime:Play() print("dasdas") if LoadAnime.IsPlaying and not OneHit.Value then OneHitEvent:FireServer() RE:FireServer() end if Count.Value >= 3 then wait(3) Debounce = true RE:FireServer() else wait(0.75) RE:FireServer() Debounce = true end end end)