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 » Scripters
Home Search
 

Help me with this Flashing Material script!!

Previous Thread :: Next Thread 
MatthewLarsen is not online. MatthewLarsen
Joined: 16 Jun 2012
Total Posts: 24
26 Jun 2016 10:21 PM
What am I doing wrong? Something must be wrong.. Also can I make it so the wait times are random and 3 and under too? I am new to scripting and I am building a game called Forus and it is a post-apocalypse/ adventure game and in a hallway we need a flashing light. Also, anyone know how to make a brick glow besides using Neon?

repeat
brick.material = "SmoothPlastic"
wait(2)
brick.material = "Neon"
wait(1)

brick.material = "SmoothPlastic"
wait(1)
brick.material = "Neon"
wait(3)

brick.material = "SmoothPlastic"
wait(3)
brick.material = "Neon"
wait(2)

brick.material = "SmoothPlastic"
wait(1)
brick.material = "Neon"
wait(2)

brick.material = "SmoothPlastic"
wait(3)
brick.material = "Neon"
wait(3)

brick.material = "SmoothPlastic"
wait(2)
brick.material = "Neon"
wait(1)
Report Abuse
mamapeachprincess is not online. mamapeachprincess
Joined: 16 Jan 2012
Total Posts: 184
26 Jun 2016 10:24 PM
You forgot until after repeat! -- I would just use while true do and put end at the end of the script.

~Mama


Report Abuse
Fangous is not online. Fangous
Joined: 03 Jul 2010
Total Posts: 4448
26 Jun 2016 10:25 PM
repeat
brick.material = "SmoothPlastic"
wait(math.random(2,3))
brick.material = "Neon"
wait(math.random(1,2))
until nil
Report Abuse
MatthewLarsen is not online. MatthewLarsen
Joined: 16 Jun 2012
Total Posts: 24
26 Jun 2016 10:51 PM
It is still not working Fang. I have a point light in the Part. Is that affecting anything?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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