#clearallchildren?

28 messages · Page 1 of 1 (latest)

mint falcon
#

how i can do clearallchildren but only for textlabels?

dense gust
#

if part:IsA("TextLabel") then part:ClearAllChildren() end 🤷‍♂️

mint falcon
#

like

#

destroy only textlabels

dense gust
#

make you own custom function then

#

like

#
local function clearAllChildrenThatAre(parent, only)
  for i, child in pairs(parent:GetChildren()) do
    if child:IsA(only) then child:Destroy() else clearAllChildrenThatAre(child, only) end
  end
end

clearAllChildrenThatAre(model, "BasePart")```
#

note: its recursive so dont use it much

mint falcon
#

how i can do like uilistlayout.Padding =

mint falcon
dense gust
#

what?

hot pebbleBOT
#

studio** You are now Level 2! **studio

mint falcon
#

instance.new

#

how i can se padding

#

set

#

like if i do Padding = (0,10) or just 0,10

dense gust
#

make a new uilistlayout like not in script

#

and see what it gets

mint falcon
#

then wont work

dense gust
#

you need UDim2 for if its like {0, 0}

#

= UDim2.new(1, 1)

mint falcon
#

like this

#

?

dense gust
#

yeah