Hello, I am making a crouch system, but I have an issue where if you uncrouch, the crouching animation still plays for the other players and it seems like it doesn’t replicate the :Stop().
can you show snippet of code? or atleast explain the process of how/where you load the animation and stop it
I use the animate script.
Figure.AttributeChanged:Connect(function(attri)
if attri == "Crouching" then
if Figure:GetAttribute(attri) >= 1 then
animTable["idle"][1].anim.AnimationId = CrouchIdle
animTable["walk"][1].anim.AnimationId = CrouchWalk
playAnimation("walk", 0.1, Humanoid)
playAnimation("idle", 0.1, Humanoid)
script:WaitForChild("idle").Animation1.AnimationId = CrouchIdle
script:WaitForChild("run").RunAnim.AnimationId = CrouchWalk
script:WaitForChild("walk").WalkAnim.AnimationId = CrouchWalk
script:WaitForChild("idle").Animation2.AnimationId = CrouchIdle
else
animTable["idle"][1].anim.AnimationId = "http://www.roblox.com/asset/?id=180435571"
animTable["walk"][1].anim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
stopAllAnimations()
playAnimation("walk", 0.1, Humanoid)
playAnimation("idle", 0.1, Humanoid)
script:WaitForChild("walk").WalkAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
script:WaitForChild("idle").Animation2.AnimationId = "http://www.roblox.com/asset/?id=180435792"
script:WaitForChild("idle").Animation1.AnimationId = "http://www.roblox.com/asset/?id=180435792"
script:WaitForChild("run").RunAnim.AnimationId = "http://www.roblox.com/asset/?id=180426354"
end
end
end)
try stopping animations prior to changing the ids to the normal idle and walking animations (assuming thats what they r)
1 Like