Need your help ( Non detection in script )

Hi devs, i need your help. I made a script where i am locating a Camera Part in the workspace. BUT my script repeat again and again “StartPartCamera is not a valid member of Folder “Workspace.CamerasPart””. And actually idk what i can do fr , so if anyone got a solution.

Error :
StartPartCamera is not a valid member of Folder “Workspace.CamerasPart” - Client - LocalScript:118
03:03:07.933 Stack Begin - Studio
03:03:07.933 Script ‘Players.Tacca_BioX.PlayerGui.IntroGameGui.LocalScript’, Line 118 - Studio - LocalScript:118
03:03:07.933 Stack End

The little local script that block me rn :
local camPart = workspace.CamerasPart.StartPartCamera

This usually means the part has yet to fully load in when the script attempts to find it. To circumvent this, simply use :WaitForChild().

local camPart = workspace:WaitForChild("CamerasPart"):WaitForChild("StartPartCamera")

Thanks for your response but i already tried that ,and the problem is still here

Error :

Infinite yield possible on ‘Workspace.CamerasPart:WaitForChild(“StartPartCamera”)’ - Studio
03:10:19.754 Stack Begin - Studio
03:10:19.754 Script ‘Players.Tacca_BioX.PlayerGui.IntroGameGui.LocalScript’, Line 118 - Studio - LocalScript:118
03:10:19.754 Stack End - Studio

This means the StartPartCamera part literally just doesn’t exist.

Try opening the Explorer while testing in Studio and checking to see if StartPartCamera is there.

I just checked and yes the part is not on the folder in the workspace , but i don’t have any script that Destroy it :confused:

Is the part unanchored and CanCollide is set to false?

Is the part anchored? It could be falling into the void and being destroyed.

Yes the part is anchored and CanCollide set to true

that why i don’t understand at all why it “dispawn” from the game

Look at the part in the Explorer window without testing. Is it there?

If so, execute this line of code in the command bar without testing. If it errors, let me know.

print(workspace.CamerasPart.StartPartCamera)

Nope i didn’t got any errors :

03:20:39.414 > print(workspace.CamerasPart.StartPartCamera) - Studio
03:20:39.415 StartPartCamera - Modifier

and ye the part is here

Is the property Archivable set to true?

image

It was yes , so i just tried without and still not working

03:23:04.209 StartPartCamera is not a valid member of Folder “Workspace.CamerasPart” - Client - LocalScript:118
03:23:04.209 Stack Begin - Studio
03:23:04.209 Script ‘Players.Tacca_BioX.PlayerGui.IntroGameGui.LocalScript’, Line 118 - Studio - LocalScript:118
03:23:04.209 Stack End

I think when i try to locate the part it delet it , idk why but i tried with another Folder , part etc… And same result

Send the whole script, this isn’t enough info

No, it should be set to true. Archivable basically just lets scripts locate the instance.

Is there any other script that configures the part? Change its name? Parent? Anchorage?

Could you go ahead and press CTRL + Shift + F for me in Studio? This should bring up the Find All / Replace All window. Now search for mentions of workspace.CamerasPart.StartPartCamera. Does any script mentioning that configure the part?

This is the start of the script , the rest of my script won’t influence

yep only this one : local camPart = workspace.CamerasPart.StartPartCamera

Like the same line

Test, then look at the explorer. Is it there? Switch to server; is it there?

What if you save the place and test?