Hello, I am Bloom berry , I am a beginner with only I think 5-6 months experience and I recently trying to make a game!
so, before I introduce the problem.
I have got these errors so many times,
so, in a nutshell, I am making a camera variable to find it’s CFrame but the problem is that the part is not getting recognized.
I am using Local script and in normal script everything perfectly.
so, error is pretty simple,
“a part is not a valid member in model” This is the simplest error that you might see, but I have tried so many times to fix it but still it does not do anything , I have used wait for child, find first child, literally everything but the error continues to go on, so what I want that when the part gets recognized it will provide the position value to the script so it can manipulate things but it does not work out and if I use Find first child or other thing it does not give its value or in this case it’s position
Can you please explain or provide information about this issue and how to get this fixed? I am very grateful for you all for helping me out.
It would be helpful if you shared some code or where the error in your code was occurring.
Typically when we want to get a player’s camera and store it in a variable, we’ll use a LocalScript and do local camera = workspace.CurrentCamera.
From there, you can access all of the camera’s properties like its CFrame.
So here are the potion of the script and the errors that are occurring now remember that I changed the variable too and i moved the part from model to workspace
hey I tried wait for child too but still no solution and I also made 2 new part called camera1 and camera2 for you information Also is this because of local script?
just try again, put waitforchild on the 2 variables, and fix the mistakes in the tweening thing (remove the second “camera1” and “camera2” after the variables)