#Getting all objects with a specific tag, and adding them to a raycast blacklist
1 messages · Page 1 of 1 (latest)
remote events?
what are you trying to accomplish? Have the cusor not appear on certain parts?
I just need any way to get the parts that are cloned upon a player's arrival to be added to raycast exclusion list, so that the parts dont end up moving towards the camera (there is a technical issue in which the raycast hits the cursor part, which will move it more towards the camera the closer it gets, its stupid but yeah)
I figured, since the raycast params are located in a local script, a way to access the cursor parts would be to give the cloned cursor parts a tag, and then have the local script be searching in the workspace for objects with that tag, to add them to the exclusion list so the raycast doesnt hit them
Idk if the tags are necessary, but thats just what i came up with
** You are now Level 6! **
Id suggest using the loop u used and storing them in a separate table
then use unpack() on the table into filter descendant instances
would it be possible to insert a cloned part into a table in the same function that they are created from?
nvm figured it out