I need to find a part with nuke in it's name, any help?
If you know what the part's parent is going to be, iterate through its children and use string.match on each of their names
for i,v in pairs(Parent:GetChildren()) do --i is index (the child's number in the hierarchy) and v is value(the part) if v.Name:lower():match("nuke") then --if the lowercase version of the name has nuke in it then --code here end end
replace 'Parent' by the part's parent location in the game hierarchy
Closed as Not Constructive by User#19524
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?