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 do I add a loop to this...

Previous Thread :: Next Thread 
ExternalDominator is not online. ExternalDominator
Joined: 25 Oct 2012
Total Posts: 1616
19 May 2013 06:19 AM
holobricks = {}

for _,brick in pairs(workspace:GetChildren()) do
if brick.Name == "Holobrick" then
table.insert(holobricks,brick)
end
end

for _,brick in pairs(holobricks) do
brick.Transparency = 0.3
wait(0.1)
brick.Transparency = 0.6
wait(0.1)
brick.Transparency = 0.9
wait(0.1)
brick.Transparency = 0.6
wait(0.1)
brick.Transparency = 0.3
wait(0.1)
brick.Transparency = 0
wait(0.1)
end

-And there we see it, the watermelon slicing the knife..
Report Abuse
ExternalDominator is not online. ExternalDominator
Joined: 25 Oct 2012
Total Posts: 1616
19 May 2013 06:24 AM
a

-And there we see it, the watermelon slicing the knife..
Report Abuse
TheLagScript is not online. TheLagScript
Joined: 13 Apr 2012
Total Posts: 2004
19 May 2013 06:25 AM
while true do

cout << "You Found My Siggy!" << endl;
Report Abuse
ExternalDominator is not online. ExternalDominator
Joined: 25 Oct 2012
Total Posts: 1616
19 May 2013 06:26 AM
Thanks.

-And there we see it, the watermelon slicing the knife..
Report Abuse
ExternalDominator is not online. ExternalDominator
Joined: 25 Oct 2012
Total Posts: 1616
19 May 2013 06:43 AM
Where do I put 'while true do' there is no spot.

-And there we see it, the watermelon slicing the knife..
Report Abuse
TheGamer101 is not online. TheGamer101
Joined: 14 Feb 2009
Total Posts: 11943
19 May 2013 06:45 AM
holobricks = {}

for _,brick in pairs(workspace:GetChildren()) do
if brick.Name == "Holobrick" then
table.insert(holobricks,brick)
end
end

while true do
for _,brick in pairs(holobricks) do
brick.Transparency = 0.3
wait(0.1)
brick.Transparency = 0.6
wait(0.1)
brick.Transparency = 0.9
wait(0.1)
brick.Transparency = 0.6
wait(0.1)
brick.Transparency = 0.3
wait(0.1)
brick.Transparency = 0
wait(0.1)
end
end
Report Abuse
SSJgoku1250 is not online. SSJgoku1250
Joined: 13 Nov 2012
Total Posts: 4633
19 May 2013 06:51 AM
^ idk
Report Abuse
ExternalDominator is not online. ExternalDominator
Joined: 25 Oct 2012
Total Posts: 1616
19 May 2013 06:56 AM
Thanks TG101.

-And there we see it, the watermelon slicing the knife..
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