Skip to content

Instantly share code, notes, and snippets.

@kezzyhko
Last active October 27, 2023 17:29
Show Gist options
  • Save kezzyhko/fde5b2ca43d33d538a031fec35d0cee5 to your computer and use it in GitHub Desktop.
Save kezzyhko/fde5b2ca43d33d538a031fec35d0cee5 to your computer and use it in GitHub Desktop.
This script selects descendants of selected instance, but only of specific type
local p = game.Selection:Get()[1]
for _, obj in pairs(p:GetDescendants()) do
if obj:IsA("Seat") then
game.Selection:Add({obj})
end
end
game.Selection:Remove({p})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment