Not asking for a script but tried to look all over roblox wiki, i couldn't find it.
What I mean by filter out instances by property is the part only get edited when it has a certain name or something. For example: There are 3 parts named "Blocky" and other parts named different and 3 of those parts can be edited by script because it has the certain name.
I am gonna use this for recoil patterns
for _,w in pairs(rpattern) do if w:IsA("Vector3Value") then if tonumber(w.Name) == 5 then -- This is the filter. If the name is 5 then below gets activated using w's or rpattern's properties. rnum = rnum + 1 local camrot = cam.CoordinateFrame - cam.CoordinateFrame.p local camscroll = (cam.CoordinateFrame.p - cam.Focus.p).magnitude local rcl = CFrame.new(cam.Focus.p) * camrot * CFrame.fromEulerAnglesXYZ(w.Value) cam.CoordinateFrame = rcl*CFrame.new(0, 0, camscroll) end end end
heres the code i have so far just incase you want to help me
I'd really like it more if you answer how to filther instances by its properties (size, vector3, color, etc.).
well, its really simple, so you kinda have an idea. you made it overly complicated. i was thinking like in the explorer only showing certain instances without outside uses for this, you want to use tables, basically
local workspacestuff = worspace:getChildren() local checkmodels = false --change this if you want it to go through models as well for n, p in pairs(workspacestuff) do if p:IsA("Model") and checkmodels == true then for n2, p2 in pairs(p:GetChildren())do if p2.Name == "wat" then --code end end else if p.Name == "wat" --code end