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

How do you make more than 1 clickable object?

Asked by 6 years ago

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

Log in to vote
0
Answered by 6 years ago

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

0
... RobloxEmotes 3 — 6y
Ad

Answer this question