I keep on getting this error and I have no clue why. "MrCleanLOL is not a valid member of UnionOperation" (MrCleanLOL is my animation key name)

local Humanoid = Character:FindFirstChild('Humanoid')

  

SwingAniTrack = Humanoid:LoadAnimation(SwingAni)

Sword.SwingAnimation = SwingAniTrack

Sword.OnHitHumanoid:Connect(function(humanoid,hit)

local hum = game.Players.LocalPlayer.Character:WaitForChild("Humanoid")

local vCharacter = Tool.Parent

local hum = vCharacter:findFirstChild("Humanoid")

Sword = hum:LoadAnimation(script.Parent.MrCleanLOL)

Sword:Play()

  

  

local myTorso = Character:FindFirstChild('LowerTorso')

local torso = humanoid.Parent:FindFirstChild('LowerTorso')

if not torso or not myTorso then return end

end)

3 comments

0

the hum and vCharacter btw has their function on the way top of the script (this is just only part of the script i've shown)

0

Do Humanoid:LoadAnimation

0

it still giving me the UnionOperation problem