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

How do I make a script to only run for certain Objects within a Parent?

For example welds,fire,particle emitters, constraints, etc to be the only ones affected.

1 answer

for i, child in pairs(Parent:GetChildren()) do
    -- Do code 
end

2 comments

0

Thanks,but let's say that there is a lot of stuff inside of Parent. How would I make it work SPECIFICALLY for that ClassName?

0

if child.ClassName == "Class" then

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