This is a script that gets a module script (working).
for i, v in pairs(attack_events[script.Name]:GetChildren()) do
if not(exceptions[v]) then
v.OnServerEvent:Connect(function(player,info)
attacks.v(player,info)
end)
end
end
Is it possible to call an attacks function without using its exact name ,
an example would be lets say the attacks module had a function called “slash”
I could say attacks.slash(), could I say attacks.v() assuming v was slash. Obviously this does not work, I am wondering if it can be done. ANY response is appreciate.