#firing raycasts

1 messages · Page 1 of 1 (latest)

mint cedar
#

I'm trying to fire raycasts from all the attachments within a model on an event, using a for loop to iterate through the model witht eh attachments and fire a raycast from each onebut I don't know how for loops work in here

unkempt tinsel
# mint cedar I'm trying to fire raycasts from all the attachments within a model on an event,...

for key, value in table

So you'd need to get all the attachments somehow, then you can loop through them.

If the table is more like a list, then key would be the index of that value in the list, and value would be the value at that index.

So a list of attachments would have key be the index of the attachment in the table, and value would be the attachment itself.

Are the attachments in one part? or all over the model

unkempt tinsel
# mint cedar in one part

Great, so you can get the list like part:GetChildren(), assuming only attachments are under that part and nothing else

mint cedar
unkempt tinsel
mint cedar
unkempt tinsel
mint cedar
#

or am i just ovethinking it

unkempt tinsel
mint cedar
unkempt tinsel
mint cedar