In my code, it goes through properties, but I have some functions inside of my module script. I want to know if there’s a way to detect when the thing is a function or not.
--Module Script:
local Weapons = {
{
--Contains weapon data in actual code.
},
{
--Contains weapon data in actual code.
},
{
--Contains weapon data in actual code.
}
}
function Weapons.Reassemble(Array)
--Function code is not relevent
end
function Weapons.FixGaps (FixArray)
--Function code is not relevent
end
return Weapons
--Local Script:
for _, Weapon in pairs(ItemDictionary) do --Adds all the items to the weapon shop.
if Weapon then
if Weapon.Purchasable == true then
--Code
end
end
end
ReplicatedFirst.Game_Client:707: attempt to index function with 'Purchasable'