Advertisement
princeofheaven

Untitled

Aug 3rd, 2015
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. function onButton1Down(mouse)
  2.  
  3. p = Instance.new("Part")
  4. p.Parent = game.Workspace
  5. p.Position = mouse.Hit.p + Vector3.new(0, 100, 0)
  6. p.BrickColor = BrickColor.new(1)
  7. p.Size = Vector3.new(10,5,10)
  8. p.Reflectance = 0.3
  9. p.Transparency = 0.1
  10. script.Mesh:Clone().Parent = p
  11. script.Touch:Clone().Parent = p
  12. end
  13.  
  14. function onSelected(mouse)
  15. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  16. end
  17.  
  18.  
  19. script.Parent.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement