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
We use cookies to offer you a better experience. By using Roblox.com, you are agreeing to our Privacy and Cookie Policy.
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Colour changing script?

Previous Thread :: Next Thread 
birchyboii is not online. birchyboii
Joined: 26 Aug 2011
Total Posts: 93
13 Feb 2012 09:48 AM
Is there a way to make a part switch from camo to lime green every half a second? If so plz post how or post the script.
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
13 Feb 2012 09:53 AM
Yes, yes there is. This script is SO simple that I'll give it to you:

while true do --- Pretty much makes it go in an endless loop.

script.Parent.BrickColor = BrickColor.new("Camo") --- Defines the new color
wait(.30) --- Time in between the colour changes.
script.Parent.BrickColor = BrickColor.new("Lime green")
end --- You guessed it, it ends the function.

If you have any further questions, don't be afraid to ask. :)


~TheWisest~
Report Abuse
birchyboii is not online. birchyboii
Joined: 26 Aug 2011
Total Posts: 93
13 Feb 2012 10:09 AM
Thanks, and yes i know its a simple script but im no good at scripting.
Report Abuse
birchyboii is not online. birchyboii
Joined: 26 Aug 2011
Total Posts: 93
13 Feb 2012 11:29 AM
Um, it does'nt work....
Report Abuse
TheWisest is not online. TheWisest
Joined: 11 Nov 2010
Total Posts: 7345
13 Feb 2012 12:06 PM
Sorry, here:

while true do --- Pretty much makes it go in an endless loop.
wait(1)
script.Parent.BrickColor = BrickColor.new("Camo") --- Defines the new color
wait(.30) --- Time in between the colour changes.
script.Parent.BrickColor = BrickColor.new("Lime green")
end --- You guessed it, it ends the function.

Tested & works.

I forgot to add another 'wait'.

~TheWisest~
Report Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
13 Feb 2012 01:57 PM
TheWisest, he wanted it to change every 0.5 secs.
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