I don’t really understand what’s your intentions here. let me get you right, you want to move all of these childrens in the BloomJects folder together, all at once?
Also, if you don’t mind sharing the script, it will help me and others help you achieve what you seek for
we’re trying to move the dflctrmtr part of each BloomJetModel with TweenService, and to do this we need to make a variable containing all of these dflctrmtr parts, where we’re having trouble is for getting all of those dflctrmtr parts inside one variable, also i think that for i,v in pairs doesn’t work in this case
no, absolutely not, for i,v in pairs may works the best for this cases, it’s just because you didn’t know how to properly use it and i don’t blame you for it.
tweenService = game:GetService("TweenService")
part = workspace.BloomJet.BloomJetModel.PrimaryPart
info = TweenInfo.new(
2,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
0,
false
)
script.Parent.MouseButton1Down:Connect(function()
for i, dflctrmtr in pairs(BloomJet:GetDescendants()) do
if dflctrmtr.Name == "dflctrmtr" and dflctrmtr:IsA("Part") then
posUp = dflctrmtr.CFrame + Vector3.new(0, .4, 0)
moveUp = tweenService:Create(dflctrmtr, info, {CFrame = posUp})
moveUp:Play()
end
end
end)
script.Parent.MouseButton2Down:Connect(function()
for i, dflctrmtr in pairs(BloomJet:GetDescendants()) do
if dflctrmtr.Name == "dflctrmtr" and dflctrmtr:IsA("Part") then
posDown = dflctrmtr.CFrame
moveDown = tweenService:Create(dflctrmtr, info, {CFrame = posDown})
moveDown:Play()
end
end)
Also, this is entirely written on devforum, i didn’t use roblox studio to check for errors/typo within the script