Advertisement
Pukaciu

Cube

Aug 3rd, 2021
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. local cube = Instance.new("Part", workspace)
  2. cube.Anchored = true
  3. cube.Position = Vector3.new(0, 5, 0)
  4. cube.Material = "Glass"
  5. cube.Size = Vector3.new(5, 5, 5)
  6. cube.Transparency = 0.6
  7. cube.BrickColor = BrickColor.new("Dark blue")
  8. local tweens = game:GetService("TweenService")
  9.  
  10. goal1 = {}
  11. goal1.Size = Vector3.new(1, 1, 1)
  12. goal1.Color = Color3.new(0.666667, 0, 0)
  13.  
  14.  
  15. goal2 = {}
  16. goal2.Size = Vector3.new(2, 2, 2)
  17. goal2.Color = Color3.new(1, 0.333333, 0)
  18.  
  19.  
  20. goal3 = {}
  21. goal3.Size = Vector3.new(3, 3, 3)
  22. goal3.Color = Color3.new(1, 1, 0)
  23.  
  24.  
  25. goal4 = {}
  26. goal4.Size = Vector3.new(2, 2, 2)
  27. goal4.Color = Color3.new(0, 0.666667, 0)
  28.  
  29.  
  30. goal5 = {}
  31. goal5.Size = Vector3.new(1, 1, 1)
  32. goal5.Color = Color3.new(0, 1, 1)
  33.  
  34.  
  35.  
  36. goal6 = {}
  37. goal6.Size = Vector3.new(2, 2, 2)
  38. goal6.Color = Color3.new(0, 0, 1)
  39. goal6.Transparency = 0
  40.  
  41.  
  42. goal7 = {}
  43. goal7.Size = Vector3.new(3, 3, 3)
  44. goal7.Color = Color3.new(0.666667, 0, 1)
  45.  
  46.  
  47.  
  48. local tweenInfo = TweenInfo.new(0.1)
  49.  
  50. local tween1 = tweens:Create(cube, tweenInfo, goal1)
  51. local tween2 = tweens:Create(cube, tweenInfo, goal2)
  52. local tween3 = tweens:Create(cube, tweenInfo, goal3)
  53. local tween4 = tweens:Create(cube, tweenInfo, goal4)
  54. local tween5 = tweens:Create(cube, tweenInfo, goal5)
  55. local tween6 = tweens:Create(cube, tweenInfo, goal6)
  56. local tween7 = tweens:Create(cube, tweenInfo, goal7)
  57.  
  58. while wait() do
  59. tween1:Play()
  60. wait(0.1)
  61. tween2:Play()
  62. wait(0.1)
  63. tween3:Play()
  64. wait(0.1)
  65. tween4:Play()
  66. wait(0.1)
  67. tween5:Play()
  68. wait(0.1)
  69. tween6:Play()
  70. wait(0.1)
  71. tween7:Play()
  72. wait(0.1)
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement