Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to make and instance on click?

local bin = script.Parent 
bin.Selected:connect(function(Mouse)
	Mouse.Button1Down:connect(function()
		print("Button1Down")
	end)
end)

1 answer

✓ Accepted answer
local bin = script.Parent
bin.Selected:connect(function(mouse)
print("1")
mouse.Button1Down:connect(function()
print("2")
if mouse.Hit ~= nil then
print("3")
part = Instance.new("Part")
part.CFrame= mouse.Hit
part.Parent = game.Workspace
--CUSTOMIZE Properties here
end
end)
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.