hello, ive been wondering if it's possible to make a local script that detects a part in the workspace and if their color is blue delete it. thanks
✓ ANSWER ACCEPTED
how do i delete a part by their color?
1 answer
✓ Accepted answer
for key,obj in pairs (workspace:GetChildren()) do
if obj:IsA("BasePart") then
if obj.Color == Color3.new(r,g,b) then
--if obj.BrickColor == "color" then
obj:Destroy()
end
end
end
Pretty self-explanatory. Let me know if you run into any issues.
This discussion is preserved as it was. New answers, comments, and votes are closed.
