Slash not working?

So, I’m testing a few things to strengthen my knowledge on scripting and then this doesn’t work:

local config = script:WaitForChild("Configuration")

    local damage = config.Damage.Value

    local throwspeed = config.ThrowSpeed.Value

    local slash = script:WaitForChild("Slash")

    local throw = script:WaitForChild("Throw")

    local throwIsPlaying = throw.IsPlaying.Value

    local slashisplaying = slash.IsPlaying.Value

    local tool = script.Parent

    local handle = tool.Handle

    local player = game.Players.LocalPlayer

    local mouse = player:GetMouse()

    local character = player.Character or player.CharacterAdded:Wait()

    tool.Activated:Connect(function()

    local loadanim = character.Humanoid:LoadAnimation(slash)

    loadanim:Play()

    print("Activated")

    end)

It basically doesn’t play the animation but it prints activated as you can see in this video:

https://gyazo.com/bc4d54a5190cb0cb5dc6168901334bbb

I did try using Humanoid.Animator but that also didn’t work.

Who is the owner of the animation? What I mean by that is is it on ur profile or if its a group game is it an asset like owned inside the group?

I’m the owner of the animation, I exported it to my account.

Recently, I’ve had the same exact issue, very odd.

1 Like

This might even be a bug but unfortunately, I’m not even a regular member.