Is there a way to properly stop the animations that are run by the "Animate" script? I have tried removing and disabling the script, trying to get the script to trigger its own "stopAllAnimations" function, and some other stuff... but nothing has worked. Does anybody on here know how to do this?
Thanks in advance!
Never mind, I figured it out myself.
Example Script:
Script
function playerAdded(player) player.CharacterAdded:connect(function(char) while char.Parent ~= game.Workspace do wait() end script.CustomAnimate:clone().Parent = char -- Note: script.CustomAnimate is the LocalScript bellow end) end game.Players.PlayerAdded:connect(playerAdded) for i, player in pairs(game.Players:GetPlayers()) do -- Sometimes you are loaded in PlaySolo without the PlayerAdded event being called playerAdded(player) end
LocalScript
local char = script.Parent char:WaitForChild("Animate"):Destroy() char.Humanoid:LoadAnimation(script:WaitForChild("BlankAnimation")):Play() -- Note: Script.BlankAnimation is an Animation with an AnimationId of: rbxassetid://194175802