What I’m doing here is making a part with the name “Body” and trying to make it the main part of the children of a model
and get the other parts to weld to the main one, How would I do this?
Which one is the “main one”? Also that’s too much robotic speaking my man, you could’ve say it like:
Yo I’m making a custom character. i have a backpack and im trying to weld it to the custom character. How should I do this?
Basically, just speak what you are trying to make, cuz we dont know what “Body” is and what is the main part of hte children of a model
Okay I just made it so instead of making the weld in the script I’d just make it in explorer and it works lmao
I didn’t know how to say it clearly so thats why i was speaking robotically
local model = script.Parent
local main = model.Main
for _, child in ipairs(model:GetChildren()) do
if child:IsA("BasePart") then
if child ~= main then
local weld = Instance.new("WeldConstraint")
weld.Part0 = main
weld.Part1 = child
weld.Parent = child
end
end
end
In studio:
In game: