Need help to make this script short

So im having trouble with trying to make the script shorter, heck i even read on how to do it and still cant make this script shorter. Here is the script so far:

while true do
	script.Parent.Size = Vector3.new(514,1,514) ---This is the starting size
	script.Parent.Transparency = 1  --- this is the starting transparency
	wait(600) --- 10 Minutes
	script.Parent.Transparency = 0
	wait(20)
	script.Parent.Size = Vector3.new(514,2,514) ---Keeps going up until (514, 110, 514)
	wait(20)
	script.Parent.Size = Vector3.new(514,3,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,4,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,5,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,6,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,7,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,8,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,9,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,10,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,11,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,12,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,13,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,14,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,15,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,16,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,17,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,18,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,19,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,20,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,21,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,22,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,23,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,24,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,25,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,26,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,27,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,28,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,29,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,30,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,31,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,32,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,33,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,34,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,35,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,36,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,37,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,38,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,39,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,40,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,41,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,42,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,43,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,44,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,45,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,46,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,47,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,48,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,49,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,50,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,51,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,52,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,53,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,54,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,55,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,56,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,57,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,58,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,59,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,60,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,61,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,62,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,63,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,64,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,65,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,66,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,67,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,68,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,69,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,70,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,71,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,72,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,73,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,74,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,75,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,76,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,77,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,78,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,79,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,80,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,81,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,82,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,83,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,84,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,85,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,86,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,87,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,88,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,89,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,90,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,91,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,92,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,93,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,94,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,95,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,96,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,97,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,98,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,99,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,100,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,101,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,102,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,103,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,104,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,105,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,106,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,107,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,108,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,109,514)
	wait(20)
	script.Parent.Size = Vector3.new(514,110,514)
	wait(3600) --- This is where it will stop.
end 

If anyone would like to help me fix this ill appreciate it. Thank you!

use TweenService, it’ll be super useful

im guessing he doesn’t want it to tween considering the 20 second interval between the increments but im not too sure…

This is def a troll bro this is how my block code for robotics looks like :sob:

1 Like
task.spawn(function()
   while true do
      script.Parent.Size = Vector3.new(514, 1, 514)
      script.Parent.Transparency = 1
      task.wait(600)
      script.Parent.Transparency = 0
      for i = 2, 110 do
         task.wait(20)
         script.Parent.Size = Vector3.new(514, i, 514)
      end
      task.wait(3600)
   end
end)
2 Likes

it worked and everything went well, thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.