Last active
October 27, 2023 17:29
-
-
Save kezzyhko/fde5b2ca43d33d538a031fec35d0cee5 to your computer and use it in GitHub Desktop.
This script selects descendants of selected instance, but only of specific type
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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