Advertisement
BabyGoatz

Untitled

Aug 2nd, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. local part = Instance.new("Part", workspace)
  2. local clickDetector = Instance.new("ClickDetector", part)
  3.  
  4. local function onMouseClick(player)
  5. part.BrickColor = BrickColor.random()
  6. end
  7. clickDetector.MouseClick:connect(onMouseClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement