Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local part = Instance.new("Part", workspace)
- local clickDetector = Instance.new("ClickDetector", part)
- local function onMouseClick(player)
- part.BrickColor = BrickColor.random()
- end
- clickDetector.MouseClick:connect(onMouseClick)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement