RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a script to weld everything in a model"
-- script for welding everything in a model local model = script.Parent -- assuming the script is a child of the model for i, part in pairs(model:GetChildren()) do if part:IsA("BasePart") then for j, otherPart in pairs(model:GetChildren()) do if otherPart:IsA("BasePart") and part ~= otherPart then local weld = Instance.new("WeldConstraint") weld.Part0 = part weld.Part1 = otherPart weld.Parent = part end end end end