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
 

Re: This or that help!

Previous Thread :: Next Thread 
mytouch is not online. mytouch
Joined: 31 Oct 2010
Total Posts: 83
30 Apr 2016 04:03 PM
I want a block to turn black or blue (50/50 chance) when i click it but im not sure how to make that happen.

Here's what i got so far:

script.Parent.Color = Color3.new("Really Black"),("Really Blue")

I know its wrong but what can i do to change it?
Please help! Thanks!

PS, i already have the clicking the block part in the script
Report Abuse
mytouch is not online. mytouch
Joined: 31 Oct 2010
Total Posts: 83
30 Apr 2016 04:17 PM
bump
Report Abuse
ComplexitiesLife is not online. ComplexitiesLife
Joined: 31 Mar 2016
Total Posts: 260
30 Apr 2016 04:19 PM
make it so tht it chooses a random number from 1 to 10 nd if the number is 2 or whatever you want it turns blue and if number is 5 thn black
Report Abuse
ComplexitiesLife is not online. ComplexitiesLife
Joined: 31 Mar 2016
Total Posts: 260
30 Apr 2016 04:21 PM
http://wiki.roblox.com/index.php?title=Random_numbers
Report Abuse
spartan6241 is not online. spartan6241
Joined: 15 Jun 2014
Total Posts: 793
30 Apr 2016 04:21 PM
How about this? I'm not really sure but it should look something like this.

local number = math.random(1,2)
if number == 1 then
script.Parent.Color = Color3.new("Really Black")
elseif number == 2 then
script.Parent.Color = Color3.new("Really Blue")
end
Report Abuse
DivinePheonix is not online. DivinePheonix
Joined: 30 Mar 2011
Total Posts: 11190
30 Apr 2016 04:24 PM
script.Parent.BrickColor = math.random() > .5 and BrickColor.new("Really black") or BrickColor.new("Really blue")
Report Abuse
mytouch is not online. mytouch
Joined: 31 Oct 2010
Total Posts: 83
30 Apr 2016 05:12 PM
thanks guys!
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