I am attempting to call a function that accesses a module with the correct weapon name and then executes a specific function depending on the combat move that is being done.
local module = require(modules.AbilityModules[child:GetAttribute("ParentWeapon")])
local ability = module:[child.Name](Anim)
The syntax of the last line is incorrect and I was wondering if there was a correct implementation of what I am trying to do. I’ve looked briefly over the devfourm, but I couldn’t find any information specifically relating to this issue. Any insight into my issue would be greatly appreciated.