I just wanna know will i run into problems with this? Does calling Stop() on a looped animation unload it?
local Mop = script.Parent
local Animations = game.ReplicatedStorage.Animations
local Mop_Action = Animations.Action_Mopping
local Mop_Idle = Animations.Idle_Mopping
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local ActionTrack = char.Humanoid.Animator:LoadAnimation(Mop_Action)
local IdleTrack = char.Humanoid.Animator:LoadAnimation(Mop_Idle)
IdleTrack:Play()
script.Parent.Destroying:Connect(function()
IdleTrack:Stop()
end)
No, because id need the animation for future use.
Can i load the same animation object twice? because if not my current implementation should work fine, all the anims are in replicated storage.
nvm, I read the script wrong, you are indeed loading it on the animator.
Are these animations looped? because if they are unless the animation finishes or is destroyed, then they will continue playing until they stop playing.
My initial thought was wrong, if you do call Stop() on an animation then it should unload itself. mb.