of     1   

Nikilie
#64213388Monday, March 12, 2012 3:44 PM GMT

Please help me. -Nikilie
unholysoda
#64214268Monday, March 12, 2012 4:17 PM GMT

function onTouch() script.Parent.BrickColor = BrickColor.random() end script.Parent.Touched:connect(onTouch)
nate890
#64215377Monday, March 12, 2012 4:57 PM GMT

    script.Parent.Touched:connect(function(hit)         script.Parent.BrickColor=(script.Parent.BrickColor~=BrickColor.new("Bright red") and BrickColor.new("Bright red") or BrickColor.new("Bright blue"))     end)
nate890
#64215403Monday, March 12, 2012 4:58 PM GMT

    local deb=false     script.Parent.Touched:connect(function(hit)         if not deb then             deb=true             script.Parent.BrickColor=(script.Parent.BrickColor~=BrickColor.new("Bright red") and BrickColor.new("Bright red") or BrickColor.new("Bright blue"))             wait(1)             deb=false         end     end)
ChocCookieRaider
#64216995Monday, March 12, 2012 5:58 PM GMT

Nate why make it so much harder for yourself?
nate890
#64217005Monday, March 12, 2012 5:58 PM GMT

Hm?
su8
#64217025Monday, March 12, 2012 5:59 PM GMT

It's not harder, it's more efficient and cleaner..
Nikilie
#64217629Monday, March 12, 2012 6:14 PM GMT

Thankyou.
unholysoda
#64217703Monday, March 12, 2012 6:16 PM GMT

No Problem.
NXTBoy
#64230136Monday, March 12, 2012 9:50 PM GMT

    local deb = false     local isBlue = true     local brick = script.Parent          brick.Touched:connect(function(hit)         if not deb then             deb = true                  brick.BrickColor = isBlue and BrickColor.new("Bright red") or BrickColor.new("Bright blue")             isBlue = not isBlue             wait(1)                  deb = false         end     end)
nate890
#64230159Monday, March 12, 2012 9:51 PM GMT

I prefer my code

    of     1