Chest development

I’m trying to create a script in which the player takes a truck (PHANTOM) and only he carries a load (X) without a trunk, just like he takes or a trunk (trailler), the truck’s trunk increases the weight, does anyone have any how this?