of     1   

HornFinical
#139783934Wednesday, July 09, 2014 7:14 PM GMT

while script.Parent.BrickColor == ("Medium stone grey") do wait(1) end script.Parent.ClickDetector.MouseClick:connect(function(player) game:GetService("MarketplaceService"):PromptPurchase(player,155809520) end) Basically what it's supposed to do is keep looping until it is no longer the color "Medium stone grey" and then move onto the next portion of the code (prompt purchase the player when clicked) The issue is, when I tested it, I clicked it while it was still medium stone grey and it prompt purchased me. Please help. What did I do wrong?
HornFinical
#139784218Wednesday, July 09, 2014 7:17 PM GMT

a
HornFinical
#139784859Wednesday, July 09, 2014 7:22 PM GMT

falkor loves childrena
HornFinical
#139785431Wednesday, July 09, 2014 7:27 PM GMT

aa falkor loves children
MHebes
#139785853Wednesday, July 09, 2014 7:30 PM GMT

Here's the issue while script.Parent.BrickColor == ("Medium stone grey") do You're comparing a BrickColor type value to a string type value (yes, even if you put ()s around it its still a string in quotes) Either a) convert the BrickColor type to a string type by adding .Name to it or convert the string to a BrickColor type by putting BrickColor.new in front of it i.e. while script.Parent.BrickColor.Name == "Medium stone grey" do or while script.Parent.BrickColor == BrickColor.new("Medium stone grey") do

    of     1