Hello. I am trying to delete the animation of a player. It currently errors out with attempt to index nil with destroy.
Character = game.Players.iiDkOffical.Character Character:FindFirstChild("Animate"):Destroy() animtracks = PHumanoid:GetPlayingAnimationTracks() for i, v in pairs(animtracks) do v:Stop() v:Remove() end
figured it out in the easiest way
Character.Animate:Destroy() animtracks = PHumanoid:GetPlayingAnimationTracks() for i, v in pairs(animtracks) do v:Stop() v:Remove() end