I’m making a plugin that needs the descendants of roblox plugin selection. Can you help?
What do you mean by ‘roblox plugin selection’ ?
When you select an object the plugin gets the descendants for the object
Add this to your code:
local Selection = game:GetService("Selection")
local Objects = Selection:Get()
if #Objects > 0 then
for i,Obj in pairs(Objects) do
for i,Des in pairs(Obj:GetDescendants()) do
-- Code --
end
end
end
1 Like