How to correctly use animation weight?

Hey guys. I have been working on a sprinting animation, and it plays while you are holding shift to sprint. The animation plays, but your Character body movement is also influenced by what your run animation is for your character (i.e. when using stylish, your body constantly turns left and right, with robot you bounce more, etc.) I’m guessing you fix this with animation weight, as the weight is how influential it is against other running animations? If not, then priority can’t be the issue, as it acts the same on both “Active” and “Movement”. At first glance this might seem like a non-topic issue, but I’m assuming this is something you would fix within your scripts. So how would you achieve this? Here is my current script:

game.ReplicatedStorage.Sprinting.OnServerEvent:Connect(function(player)
	local sprintAnim = Instance.new("Animation")
	sprintAnim.AnimationId = "rbxassetid://4895742726"
	loadedAnimation = game.Workspace[player.Name].Humanoid:LoadAnimation(sprintAnim)
	loadedAnimation:Play()
end)

game.ReplicatedStorage.NotSprinting.OnServerEvent:Connect(function(player)
loadedAnimation:Stop()
end)
2 Likes

Perhaps you might want to experiment a bit following this bit of information

1 Like