Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 6 years ago
Edited 6 years ago

title says all ok ok

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. User#18718 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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)
Ad

Answer this question