CFrame in Tables being weird?

Hello! I’m currently making some module scripts for my guns. And doing so I’m trying to create CFrame values inside a table. But I’m confused because it’s returning nil. I’ve done it in the pass. And I’m doing the exact same thing in my previous module script. Any help please?

New:
image

Old:
image

Output for new:

when using modules you have to make functions in order to return values and use them

e.g

local module = {}
function module.Shared()
    return {MaxAmmo = 40, Damage = 11, FireRate = 0.08, Accuracy = 8, And So on}
end
1 Like

Thank you! This worked, but putting a function inside of the module table didn’t work. So I put it outside. Anyways, thanks for the help! Appreciate it!

1 Like