So I want to make a script that saves a part's position, transparency, and size, then tweens the parts to its position, transparency, and size that were originally saved. In other words, it builds the model. Any help? This is what I have so far:
for index, child in pairs(workspace.ItemQ:GetChildren()) do
child.Size = Vector3.new(0,0,0)
child.Position = workspace.QPos.Position
child.Transparency = 1
end
wait(5)
for index, child in pairs(workspace.ItemQ:GetChildren()) do
local TweenService = game:GetService("TweenService")
local Part = child
local info = TweenInfo.new(
1,
Enum.EasingStyle.Quint,
Enum.EasingDirection.Out,
0,
false,
0
)
local Goals =
{
Size = child.Size;
Transparency = child.Transparency;
Position = child.Position
}
local Tween = TweenService:Create(Part,info,Goals)
Tween:Play()
print("Brick placed")
wait (0.1)
end
