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

How to recgonize one child out of some with the same names based on the property?

Asked by
vra000 22
3 years ago
Edited 3 years ago

I am making an FNF game, and there are multiple left arrows with the same name coming in, (cuz, y'know, you need to press those arrows to win." so I have all the arrows with the same name in a for do loop, how could I find the arrow that will disappear when it is hit? Here is my script:

for i, v in pairs(bfarrows:GetChildren()) do
    if v.Name == "LeftPressedClone" then
              --what I need help with
    end
end
0
You should use a ClickDetector for this if it's a part. If it's a gui, then have a script in each arrow that makes it disappear when it is clicked. PaleNoobs 37 — 3y

Answer this question