Part not found (Camera)

Hello I don’t understand why I have not my camera part in the folder lobby when I do “Play”:


Localscript :

local camera = workspace.CurrentCamera
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = workspace.Lobby.Cam.CFrame

1 Like

Do you have any scripts that move the cam, or delete it?

Is the cam anchored and or have collision on?normally when I have an issue like this the part is falling through the map.

Nope I have only 2 scripts in my game.

1 Like

Yes it’s, I checked it a lot of times.

1 Like

insert a script inside the cam part make a while loop and print where the cam is (with .Parent) and add a wait in the loop.

while true do
1 Like

Firstly while wait(1) true is better and :

Is there any script that for some reason parents the cam to the character (or player)?

No, no one moving or deleting the cam part.

Ig just insert a new part, name it Camera this time and just change the variable

camera.CFrame = workspace.Lobby:WaitForChild("Camera").CFrame

Make sure you dont have streaming enabled. if its too far away then it’ll not be visible for client, happened to me alot

Wait what? What do you mean? And how to disable it?

Make a new part, insert it in the Lobby folder, Position it how you want it to be, Anchor it, Name it “Camera”, and then change the script like i told you

imageIt does not come from this…

20:01:48.836 ptitloup132 committed a new version of script StarterPlayer.StarterPlayerScripts.CameraBackgroundLobby - Studio
20:01:50.456 1 - Serveur - CameraBackgroundLobby:5
20:01:50.456 3 - Serveur - CameraBackgroundLobby:7
20:01:50.868 cam is not a valid member of Folder “Workspace.Lobby” - Client - CameraBackgroundLobby:6

local rs = game:GetService("ReplicatedStorage")

local rs = game:GetService("ReplicatedStorage")

	local camera = workspace.CurrentCamera
	camera.CameraType = Enum.CameraType.Scriptable
	camera.CFrame =

oh yea, make it a waitforchild

Yeah to get “Infinite”, I have already tried this dw :>.

No its because the client loads faster than the parts, just change this:

camera.CFrame = workspace.Lobby:WaitForChild("cam").CFrame

Waiting in the void:

20:05:01.530 Le fichier de récupération automatique Police Simulator @ 16 oct. 2023 20:05 a été créé - Studio
20:05:03.788 1 - Serveur - CameraBackgroundLobby:5
20:05:03.788 3 - Serveur - CameraBackgroundLobby:7

Literally read. please