Hi guys, hoping you can help me in this one, this error has been cracking my head for atleast 1 hour and I can’t seem to fix it in no way possible
Output:
AnimationsList.List = {
Fists= {
KeyName = "Bareknuckle",
["IdleAnim"] = "rbxassetid://7960303328",
["WalkAnim"] = "rbxassetid://8417014258"
},
Unequipped = {
KeyName = "Weaponless",
["IdleAnim"] = "rbxassetid://7486396689",
["WalkAnim"] = "rbxassetid://8418356862"
},
BaseballBat = {
KeyName = "Bat",
["IdleAnim"] = "rbxassetid://8437882381",
["WalkAnim"] = "rbxassetid://8418356862"
}
}
---------------------------------------------------------------------------------------------here
AnimationsList.ReturnAnimation = function(AnimName, KeyName) <-- this is the problem
for Index, AnimSheet in ipairs(AnimationsList.List) do
if AnimSheet.KeyName == KeyName then
return AnimSheet[AnimName]
end
end
end
Solutions I tried:
-Emptying the entire function leaving only a print, still requires #3 string argument
-Changing function method, making it a separate function out of the table, still requires #3 string argument
-Changing the function’s name, still requires #3 string argument
Please help.