Hello
I’m trying to create an NPC that has animations but, for an unknown reason, the animations destroy themselves and are inaccessible.
I tried parenting the animations to the script, a folder, and humanoid, I even did :WaitForChild('Animation') but it still did not do anything.
Any suggestions?
i don’t think objects will randomly delete themselves, you probably have a for loop that gets each descendant and specifically looks for animations
No, this is all I did:
local Animator = script.Parent.Humanoid.Animator
local prompt = script.Parent.HumanoidRootPart.ProximityPrompt
local IdleAnim = Animator:LoadAnimation(script.Parent.Animations:WaitForChild('IdleAnimation'))
local WaveAnim = Animator:LoadAnimation(script.Parent.Animations:WaitForChild('WaveAnimation'))
Under:

(Activate is the script being referenced to)
and your exact problem is that the Animation is getting DESTROYED when the game loads? can i see a video of that happening? with you checking the explorer
I just rebooted Studio and the animations aren’t there anymore
weird lol, must be a roblox bug
Yeah it was a bug with studio
When I said that the animations weren’t there, the script deleted itself as well.
I just booted it back up and the animations and script are back to normal.