SebTDZ

Hmm

Sep 23rd, 2019
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. local L1 = Instance.new("Model",script)
  2. for i=1,5 do
  3. local Part = Instance.new("Part",L1)
  4. Part.Anchored = true
  5. Part.Position = Vector3.new(0,0.1 * i,0)
  6. Part.Size = Vector3.new(i,0.1,i)
  7. end
  8. wait(2)
  9. while true do
  10. local Size = #L1:GetChildren()
  11. local Space = Size / 100
  12. print(Space)
  13. for i,v in pairs(L1:GetChildren()) do
  14. local open = game.TweenService:Create(v, TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0), {Position = Vector3.new(0,Space * i,0)})
  15. open:Play()
  16. end
  17. wait(3)
  18. for i,v in pairs(L1:GetChildren()) do
  19. local close = game.TweenService:Create(v, TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,false,0), {Position = Vector3.new(0,0.1 * i,0)})
  20. close:Play()
  21. end
  22. wait(3)
  23. end
Advertisement
Add Comment
Please, Sign In to add comment