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
 

SB Pet Script

Previous Thread :: Next Thread 
jturnism is not online. jturnism
Joined: 18 Mar 2011
Total Posts: 7
18 May 2013 01:16 PM
I need help with this

while true do
RP:fire()
wait()
end

while true do
wait(.3)
selectionBox.Color = BrickColor.new(math.random() , math.random() , math.random())
wait(.3)
light.Color = Color3.new(math.random() , math.random() , math.random())
wait(.3)
end

For some reason it errors, I am guessing it is because of two while true do's?
I combined them like this.

while true do
RP:fire()
wait(.3)
selectionBox.Color = BrickColor.new(math.random() , math.random() , math.random())
wait(.3)
light.Color = Color3.new(math.random() , math.random() , math.random())
wait(.3)
end

And it works fine. But is there a way to do them separate?
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