This one needs more detail before it can be answered properly — "codes" could mean a few different things in Roblox.
If you mean scripting behaviour into a place you built, that is done with Roblox's own scripting language, Lua, inside Studio. If you mean promotional codes that unlock items, those are issued by Roblox and by game owners, not generated by players. Say which of the two you are after and the answer gets a lot simpler.