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

How Do I Create a New Instance with ClickDetector? (Answered)

title says all ok ok

1 comment

0

Hey! Be sure to accept killertybear's answer rather than changing the title to answered. That way he/she gets site credit for doing so. Thank you.

1 answer

Have a function that activates after a click is detected

function click()
	local part = Instance.new("Part")
	--set the instance.new ("part") properties here
end

game.Workspace.Part.ClickDetector.MouseClick:connect(click)

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