i keep getting the "LoadAnimation requires an Animation object" error on line 36 on a serverscript and have no clue what is wrong with it this is the script i'm using
local rp = game:GetService("ReplicatedStorage") local Punch = rp:WaitForChild("Punch") local Animations = script:WaitForChild("Animations") local R15 = { ["L"] = Animations.R15.Combat1, ["LL"] = Animations.R15.Combat2, ["LLL"] = Animations.R15.Combat3, } local R6 = { ["L"] = Animations.R6.Combat1, ["LL"] = Animations.R6.Combat2, ["LLL"] = Animations.R6.Combat3, } Punch.OnServerEvent:Connect(function(Player,combatSequence) local Character = Player.Character local Humanoid = Character.Humanoid local HumanoidRP = Character.HumanoidRootPart local Stand = Character:FindFirstChild("Stand") if Stand then --if stand is found local AnimControl = Stand:FindFirstChild("AnimControl") if AnimControl then --/Animation to be played local Action local HumanoidType = AnimControl:FindFirstChild("HumanoidType") if HumanoidType.Value == "R15" then Action = AnimControl:LoadAnimation(R15[combatSequence]) elseif HumanoidType.Value == "R6" then Action = AnimControl:LoadAnimation(R6[combatSequence]) end Action:Play() Action.Stopped:Connect(function() Punch:FireClient(Player,true) end) end else --if stand is not found Punch:FireClient(Player,false) end end)