I can’t stop this animation for some reason. The animation is not stored at the top of the script, and that’s because I don’t know a way to get Player, unless the animation variable is under the remote that called a remote event, because one of the arguments is player, which gets the player. The animation that I’m trying to stopped is named “threefreezeanim.”
Here’s the code:
script.Parent.OnServerEvent:Connect(function(Player, TF, TFcooldown)
local StandModel = Player.Character:WaitForChild("EchoesA3")
local animControl = StandModel:WaitForChild("AnimControl")
local threefreezeanim = animControl:LoadAnimation(game.ReplicatedFirst.Preloader.Echoes:WaitForChild("ThreeFreeze"))
Are you playing the animation with a server script? Why not using a local script? Animation is replicated to other players even when played on a local script.
Also another reason why I didn’t play it from a local script is because I have events coming from animation markers, and I want those to be seen by the server.
I have to use :AdjustWeight(0.0001) but that won’t work since I have a function that checks if the animation is still playing or not, and technically an animation that has a weight of 0.0001 is still playing. I’ve tried to find something about checking the adjust weight on an animation but I havent found one yet.