Does anyone know why my VR script keeps giving me this error?

i was coding a VR script untill i went to test it and it kept saying that there is an error from trying to set the parent of an attachment does anyone know why?

1 Like

it is not LeftArm but plrleftarm you write in your script. I think is that.

i just tryed it and it works but theres a new issue when the arms unanchored they fall through the map instead of using the alignPosition and Orientation to Go to the VRController Part

But do the script send you a error?

Line 83

I think it’s RightArm for R6 and RightLowerArm for R15. I’m not 100% sure those are the correct names, but I know it’s not “Right Arm” or “Left Arm”.

That error you’re getting means it’s hitting a :WaitForChild() and it isn’t sure if the item it’s waiting for will ever load in. You can actually do :WaitForChild([obj], 3) and it’ll wait 3 seconds for the instance to load in, then it’ll move on.

well right now the script is working and i accidently made it so that other people can see you

and also is there anyway to see what direction the thumb stick is in?