I would like to know if it would be needed for this too.
part = Instance.new("Part") function PartResize() while true do part.Size = Vector3.new(5,5,5) wait(0.2) part.Size = Vector3.new(10,10,10) wait(0.2) end end
Yes it would be needed for this, for this you just need to call it.
You just need to add PartResize() after the function.
Full script:
part = Instance.new("Part") function PartResize() while true do part.Size = Vector3.new(5,5,5) wait(0.2) part.Size = Vector3.new(10,10,10) wait(0.2) end end PartResize()