cub2blox is a simple Lua script that converts Cube World model files (.cub) to Roblox Studio model files (.rbxmx).
lua convert.lua <cubfile> [modelname]The Lua script takes a single .cub file as an argument and outputs a .rbxmx file in the same directory. Example usage:
lua convert.lua some_blocky_house.cubYou may also optionally provide a string to use as the Roblox model's Name property, for instance:
lua convert.lua iron-greatsword5.cub greatswordThe resulting Roblox model contains all voxels as size 1,1,1 parts with the correct color values. No optimizations are done, so be careful how many blocks are in the Cube World model, as Roblox's engine isn't designed to handle large amount of parts.
