Hi SH,
I've been trying to make a HopperBin, that on selected, one is able to click and drag across the screen, leaving a trail of black, tiny blocks. (to simulate drawing)
function onClicked(m) while hold do newp = Instance.new("Part", workspace) newp.Size = Vector3.new(0.1, 0.1, 0.1) newp.Anchored = true newp.BrickColor = BrickColor.new(0, 0, 0) pcall(function() newp.CFrame = m.Hit end) wait() end end hpb.Selected:connect(function(m) m.Button1Down:connect(function() hold = true onClicked(m) end) m.Button1Up:connect(function() hold= false end) end)
I really have no idea what's going on, I'm trying to make a paint tool, and it just won't work! Any ideas?