#firing raycasts
1 messages · Page 1 of 1 (latest)
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
in one part
Great, so you can get the list like part:GetChildren(), assuming only attachments are under that part and nothing else
and getchildren would return a table?
yep, a table of all children under the instance
I'd have to give them all unique names for it work properly right
Nope, GetChildren is gonna get every child regardless of name
no like, in the for loop, I'd have to iterate through, if they're all named 'attachment' then it'll be a mess when trying to fire a raycast from the instance called 'attachment'
or am i just ovethinking it
The names don't matter, the loop will give you the attachment itself
oh dam really?, let me try it out
so smth like this?
mhm!
danke brotha, have a good one