maybe try calling Animator:LoadAnimation() instead of Humanoid:LoadAnimation() like this
local anim = script.Animation
local player = game.Players.LocalPlayer
local animationID = “rbxassetid://6269140286”
animationStatus = false
script.Parent.MouseButton1Click:Connect(function()
if animationStatus == false then
animationStatus = true
local animationCrouch = Instance.new(“Animation”)
animationCrouch.AnimationId = animationID
local loadedAnim = player.Character.Humanoid:WaitForChild(“Animator”):LoadAnimation(animationCrouch)
loadedAnim:Play()
player.Character.Humanoid.WalkSpeed = 10
else
for i , v in pairs(player.Character.Humanoid:GetPlayingAnimationTracks()) do
v:Stop()
end
player.Character.Humanoid.WalkSpeed = 16
animationStatus = false
end
end)
Try stopping and destroying all animations loaded into the character model. Then, load the animation you’d like to play and play it. If it works, then something is overriding your animation.
If not, then double check the animation ID and make sure it’s correct. Also, you can try loading it before hand with the ContentProvider. It’s possible that it’s not loading right away for whatever reason.
(Sometimes uploading assets take a bit of time before being useable in-game. They must be verified and approved before the public can see it in-game. In case there are any TOS violations)
I have a past post that has a code snippet on how to stop all animations in a character, found here.