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: I need help with a script.....

Previous Thread :: Next Thread 
family1212 is not online. family1212
Joined: 17 Jan 2010
Total Posts: 67
05 Jun 2012 11:21 PM
I want this script to repeat itself none stop but I don't know how, if someone could tell me how that would be great!

game.Workspace.ZombieDoor.CanCollide = true
game.Workspace.ZombieDoor.Transparency = 0
wait(120)
game.Workspace.ZombieDoor.CanCollide = false
game.Workspace.ZombieDoor.Transparency = 0.5
wait(60)
game.Workspace.ZombieDoor.CanCollide = true
game.Workspace.ZombieDoor.Transparency = 0

And the ZombieDoor is the Door :P
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
05 Jun 2012 11:22 PM
while true do
game.Workspace.ZombieDoor.CanCollide = true
game.Workspace.ZombieDoor.Transparency = 0
wait(120)
game.Workspace.ZombieDoor.CanCollide = false
game.Workspace.ZombieDoor.Transparency = 0.5
wait(60)
game.Workspace.ZombieDoor.CanCollide = true
game.Workspace.ZombieDoor.Transparency = 0
wait(1)
end

Report Abuse
family1212 is not online. family1212
Joined: 17 Jan 2010
Total Posts: 67
05 Jun 2012 11:23 PM
Oh so I just put while true do and at the end, end?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
05 Jun 2012 11:27 PM
Yep. Also, remember that you at least need a wait() in a while loop or it will crash.
Report Abuse
family1212 is not online. family1212
Joined: 17 Jan 2010
Total Posts: 67
05 Jun 2012 11:27 PM
wait, what?
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
05 Jun 2012 11:28 PM
If you have a while loop, make the script have a wait. But you're fine because you put 2 or three waits in the loop.
Report Abuse
family1212 is not online. family1212
Joined: 17 Jan 2010
Total Posts: 67
05 Jun 2012 11:29 PM
Oh ok I see now
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
05 Jun 2012 11:29 PM
Good :)
Report Abuse
family1212 is not online. family1212
Joined: 17 Jan 2010
Total Posts: 67
05 Jun 2012 11:30 PM
Thanks alot :D
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
05 Jun 2012 11:32 PM
You're welcome.
Report Abuse
ustolemyaccountdark is not online. ustolemyaccountdark
Joined: 24 Aug 2011
Total Posts: 1908
05 Jun 2012 11:36 PM
Derp :3 problem solved
Report Abuse
family1212 is not online. family1212
Joined: 17 Jan 2010
Total Posts: 67
05 Jun 2012 11:37 PM
lol
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