The error "attempt to call a userdata value" is happening in the Animation2:Play() line. I can't find any reason for that to occur, so could you help me?
local Animation2 = Player.Character.Humanoid:LoadAnimation(game.ServerStorage.Objects.Animations.Failed) Animation2:Play()
That error begun to appear not too much time ago and before that the script was running as usual, also I haven't edited script around that time I think. Animations from other parts of the code are loading normally though.
Edit: I forgot to mention that the script isn't even running that part of the code but still gives the error.
Fixed: It was the New Lua VM (Beta Feature) :|