Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onButton1Down(mouse)
- p = Instance.new("Part")
- p.Parent = game.Workspace
- p.Position = mouse.Hit.p + Vector3.new(0, 100, 0)
- p.BrickColor = BrickColor.new(1)
- p.Size = Vector3.new(10,5,10)
- p.Reflectance = 0.3
- p.Transparency = 0.1
- script.Mesh:Clone().Parent = p
- script.Touch:Clone().Parent = p
- end
- function onSelected(mouse)
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- script.Parent.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement