Advertisement
tripono

Untitled

Oct 18th, 2015
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1.  
  2. button = script.Parent
  3. blue = button.BackgroundColor3
  4. red = Color3.new(1,0,0)
  5. green = Color3.new(0,1,0)
  6.  
  7. function changeColor()
  8. if button.BackgroundColor3 == blue then
  9. button.BackgroundColor3 = red
  10. elseif button.BackgroundColor3 == red then
  11. button.BackgroundColor3 = green
  12. else
  13. button.BackgroundColor3 = blue
  14. end
  15. end
  16.  
  17. button.MouseButton1Click:connect(changeCĀ­olor)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement