Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

"MrCleanLOL is not a valid member of UnionOperation"?

Asked by 4 years ago

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)

```lua 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)

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) TheBuliderMC 84 — 4y
0
Do Humanoid:LoadAnimation AizakkuZ 226 — 4y
0
it still giving me the UnionOperation problem TheBuliderMC 84 — 4y

Answer this question