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

How do you make more than 1 clickable object?

Hi! How do you make more than 1 clickable object because the first is working but when I make the second and click on the second the first and the second appear so could you please help me.

SCRIPT

function onClick(click) for i,v in pairs (game.Lighting:GetChildren()) do if v.ClassName == "Tool" then c = v:Clone() c.Parent = click.Backpack end end end script.Parent.ClickDetector.MouseClick:connect(onClick)

Thanks! Help ASAP

(Also sorry for my attitude in my last question)

1 answer

So all you have to do is add a click detector to any object you want to be clickable.

1 comment

0

...

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