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: Not checking the color

Previous Thread :: Next Thread 
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 03:09 PM
local i = sp.GameFrame.world1info.infect
local color = script.Parent.color.Value
i.MouseButton1Click:connect(function()
if d.Value >= 100 then
sound3:Play()
d.Value = d.Value - 100
i.Style = "RobloxButton"
w1.BackgroundColor3 = Color3.new(175/255, 22/255, 75/255)
print("Infected!")
elseif i.BackgroundColor3 == color and d.Value ~= 100 then
sound2:Play()
print("Insufficient funds, or its already infected!")
end
end)

Its suppose to check if i's color is the value of color(175, 22, 75) and if d's value is less than 100 then it does plays a sound and prints, but its not doing that.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 03:10 PM
*Its suppose to check if i's color is the value of color(175, 22, 75) and if d's value is less than 100 then if it is true it plays a sound and prints, but its not doing that.*
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 03:13 PM
bump
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 03:16 PM
bump bump
Report Abuse
ScriptsAndStuff is not online. ScriptsAndStuff
Joined: 21 Feb 2013
Total Posts: 264
17 Jul 2013 03:28 PM
Oh hey bruce :p
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 03:46 PM
bumpp
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 04:08 PM
bumpppp
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:43 PM
bump
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:45 PM
bump bump
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:47 PM
bumpity
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:47 PM
Or are there any methods that do the same thing?
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:49 PM
bumpppp
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:50 PM
.-.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:52 PM
lump .__________________.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:54 PM
bump(From chuck norris)
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:56 PM
dump bump lump
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:57 PM
._.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 08:59 PM
.......................
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
17 Jul 2013 09:00 PM
I give up :L
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