for _,v in pairs (game.Workspace.Cube:GetDescendants()) do
if v:IsA("BasePart") then
v.Anchored = false
local weld = Instance.new("WeldConstraint")
weld.Part0 = v
weld.Part1 = game.Workspace.Cube.CubeMain
weld.Parent = v
end
end
while true do
wait(5)
game.TweenService:Create(game.Workspace.Cube.CubeMain.BodyGyro, TweenInfo.new(5),{
CFrame = CFrame.new(game.Workspace.Cube.CubeMain.Position + Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1)),game.Workspace.Cube.CubeMain.Position)
}):Play()
end