{"id":"stratiz/Welder","name":"Welder","scope":"stratiz","platform":"roblox","description":"A utility for welding parts together","version":"1.1.0","latest":"1.1.0","versions":["1.0.0","1.1.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"ef256149d6d8c222ac8dc10c82634bfa0b122bb7b3c196b96851fcb97c516c99","likes":0,"downloads":2,"install":"forest install stratiz/Welder","url":"https://forest.dev/p/roblox/stratiz/Welder","files":"https://api.forest.dev/ai/package/roblox/stratiz/Welder/files","readme":"# Welder\r\n\r\nUtility for welding parts together and welding whole models to their primary part.\r\n\r\n## Usage\r\n\r\n```lua\r\nlocal Welder = require(path.to.Welder)\r\n\r\nWelder:Weld(vehicle.Chassis, vehicle.Seat)\r\n\r\nlocal welds = Welder:WeldModelToPrimary(model)\r\n\r\nWelder:UnweldModelFromPrimary(model)\r\n```\r\n\r\n## API\r\n\r\n### Welder:Weld(part0, part1, snap)\r\n\r\nWelds `part1` to `part0` and returns the Welder, parented to `part0`. The current offset between the parts is preserved. Pass `true` for `snap` to move `part1` onto `part0` instead.\r\n\r\n### Welder:WeldModelToPrimary(model, exempt?)\r\n\r\nWelds every BasePart in the model to its primary part and unanchors them, leaving the primary part free to drive the whole model. Returns the created welds. Errors if the model has no primary part.\r\n\r\nIncluding exempt table exempts those instances and their decendants from being welded.\r\n\r\n### Welder:UnweldModelFromPrimary(model)\r\n\r\nDestroys every Welder and WeldConstraint parented under the model's primary part, including any that were not created by this module. Errors if the model has no primary part.\r\n","readmeTruncated":false}