#question: does :Stop() for plr animations work on server-side scripts?

2 messages · Page 1 of 1 (latest)

slim bane
#

something i tried

this didnt work but i tried this, I asked the goofy ahh ai and it suggested this but... nah

remoteEvent.OnServerEvent:Connect(function(player, holdingTool)

    local humanoid = player.Character:WaitForChild("Humanoid")
    local animator = humanoid:WaitForChild("Animator")

    local holdAnim = game:WaitForChild("ReplicatedStorage"):WaitForChild("Animations"):WaitForChild("ItemHoldAnim")
    animator:LoadAnimation(holdAnim)
    local animationTrack = animator:LoadAnimation(holdAnim)

play works, stop doesnt (can you even store and load anims in rep storage? lol like what)

tall bone
#

Try playing animations on local script. Add motor 6d from server script for tool animations. You can use Animator:GetPlayingAnimationTracks() method