Im trying to match the name of a table with an instance name.
-- Module script 1
local ModuleScript2 = require(game:GetService("ServerScriptService").HitBoxHandler.MeleeLibrary)
function ReturnWeaponInfo(Name)
local weaponName = Name
-- How do i get the table name and a specific value inside of it?
end
--Module Script 2
local MeleeLibrary = {
["Pan"] = { -- The name im trying to get
["Damage"] = 10, -- the value name and value im trying to get
["StunTime"] = 1.5,
["KnockBackForce"] = 450,
["KnockBackUpForce"] = 500,
["MaximumDistance"] = 4.3
},
["Wooden Sword"] = {
["Damage"] = 12,
["StunTime"] = 0,
["KnockBackForce"] = 0,
["KnockBackUpForce"] = 0,
["MaximumDistance"] = 5.2
}
}
How would I be able to do this?