#Not finding child

1 messages · Page 1 of 1 (latest)

neat hamlet
#

This is a simple script, it earlier makes a value instance and makes it a hitboxes child, however, it for some reason it finds the children of one part, but simply does not find of the other, despite both of them being identical in children.

(The second hitbox, the one in blue, is the one having the issue, the print gives the first one's children normally, but gives the second one blank)

rocky crag
#

try to use GetDescendants

neat hamlet
rocky crag
#

does ur parts have archivable enabled?

neat hamlet
rocky crag
#

maybe thats problem?

neat hamlet
#

i've tried setting it true just right now and still same result

rocky crag
#

uhmm

#

when u run game on studio, does ur parts appears on explorer?

neat hamlet
#

yes yes

rocky crag
#

if u just try write on this script (workspace.Hitboxes:GetDescendants()), what will it print?

void groveBOT
#

studio** You are now Level 3! **studio

neat hamlet
#

For some reason

#

it is only finding one of the hitboxes

rocky crag
#

evilcat bro whats problem with roblox lol

#

wait if u just duplicate the one that works, will script see new duplicated one?

rocky crag
#

nono, try to duplicate it not in script, I mean, duplicate in game editing

#

just ctrl D

#

and try

#

btw if clone thing returns nil it means that part doesnt have archivable enabled

neat hamlet
#

I'll have to duplicate the line that creates it then

neat hamlet
#

my mistake

neat hamlet
#

but why? Both the first and the second hitboxes are pretty much the same, with the only difference being one is smaller than other

neat hamlet
#

my code is racist 💀

rocky crag
rocky crag
neat hamlet
#

and that might cause some headache

rocky crag
#

argh

neat hamlet
#

but y'know what? Screw it

#

i'ma go code the whole world of other stupid things i have to

rocky crag
#

heh

neat hamlet
#

and pray to God this line exorcises itself at some point in time

#

gg, i respect you a lot for helping me