#using [] instead of FindFirstChild()
15 messages · Page 1 of 1 (latest)
nope, it's actually faster
it's just not consistent
cause an instance is not a table
but it pretty much behaves like one, specifically a dictionary
so no, it's not bad but stick to a single style across the codebase
often I see newbies mixing dot, . syntax with find first chid/Wait for child and brackets []
in terms of what
yeah i always use . for instances that already exist and findfirstchild for ones with specific names(player.Name.."' house" for example)
look up
FFC is gonna iterate the array of children
while [] is a direct index
which is O(1)
you cannot get faster than that
thats cool