generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: How can I shorten this script?

Previous Thread :: Next Thread 
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
31 Aug 2013 11:44 AM
halp

while true do
wait()
game.Workspace.PartE.Size = Vector3.new (2,2,2)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (2.2,2.2,2.2)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (2.4,2.4,2.4)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (2.6,2.6,2.6)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (2.8,2.8,2.8)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (3,3,3)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (3.2,3.2,3.2)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (3.4,3.4,3.4)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (3.6,3.6,3.6)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (3.8,3.8,3.8)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (4,4,4)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (4.2,4.2,4.2)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (4.4,4.4,4.4)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (4.6,4.6,4.6)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (4.8,4.8,4.8)
wait(.01)

game.Workspace.PartE.Size = Vector3.new (5,5,5)
wait(.01)
end
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
31 Aug 2013 11:45 AM
it just makes a block go from Vector3(2,2,2) to Vector3(5,5,5), forever.
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
31 Aug 2013 11:46 AM
while true do
for index = 1, 15 do
game.Workspace.PartE.Size = Vector3.new(2 + 0.2*index, 2 + 0.2*index, 2 + 0.2*index)
wait()
end
end
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
31 Aug 2013 11:48 AM
while wait() do
for i = 1,50 do --change 50 to how many times it adds .2,
waittime = 1 --wait time before adding another .2
e = game.Workspace.PartE.Size
e = e + Vector3.new(0.2,0.2,0.2)
wait(waittime)
end
Report Abuse
secretidagent is not online. secretidagent
Joined: 07 Nov 2010
Total Posts: 1600
31 Aug 2013 11:49 AM
while true do
game.Workspace.PartE.Size = Vector3.new(2,2,2)
wait()
for I=1, 15 do
game.Workspace.PartE.Size = game.Workspace.PartE.Size + Vector3.new(0.2,0.2,0.2)
end
end

-- There you go, secretidagent
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
31 Aug 2013 11:49 AM
THanks,it works.

for index = 1,15 do --What does this line do, and mean? I get the rest of it.
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
31 Aug 2013 11:49 AM
while wait() do
for i = 1,50 do --change 50 to how many times it adds .2,
waittime = 1 --wait time before adding another .2
e = game.Workspace.PartE.Size
e = e + Vector3.new(0.2,0.2,0.2)
wait(waittime)
end
end
forgot a end sorry,
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
31 Aug 2013 11:49 AM
That is some very poor code. Just use mine.
Report Abuse
Xtreme101 is not online. Xtreme101
Joined: 03 Jan 2009
Total Posts: 4385
31 Aug 2013 11:50 AM
for index = 1, 5 do
print(index)
end

>1
>2
>3
>4
>5
Report Abuse
shooter06 is not online. shooter06
Joined: 13 Jan 2011
Total Posts: 7443
31 Aug 2013 11:51 AM
[ Content Deleted ]
Report Abuse
KodakKid3 is not online. KodakKid3
Joined: 25 Dec 2008
Total Posts: 2860
31 Aug 2013 11:52 AM
Xtreame, I am using yours. But what does that one line mean?
Report Abuse
Soquick is not online. Soquick
Joined: 01 Nov 2012
Total Posts: 1497
31 Aug 2013 11:52 AM
^
he just is mad at me because my codes are better on most forums
and he was asking for help more than me
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image