Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Custom walking animation gets cut out by ROBLOX walking animation?

function Equipped()
	Character = Tool.Parent
	Player = Players:GetPlayerFromCharacter(Character)
	Humanoid = Character:FindFirstChild("Humanoid")
	RootPart = Character:FindFirstChild("HumanoidRootPart")
	Humanoid.Running:Connect(function()
		local run=Humanoid:LoadAnimation(script.Parent.Animations.R15.SwordRun)
		run:Play()
	end)
end

(This script is on a server script inside of a sword)

The priority setting of the animation doesn't seem to be the problem as the animation gets cut off despite what setting it's on, including "action". Is there any way to keep an animation running without it getting cut off?

1 answer

✓ Accepted answer
Character.Animate.Disabled = true
			local ActiveTracks = humanoid:GetPlayingAnimationTracks()
			for _,v in pairs(ActiveTracks) do
				v:Stop()
			end

This script disables animations so that your animations won't be bothered. This needs to be a localscript.

This discussion is preserved as it was. New answers, comments, and votes are closed.