I’ve tried using the assistant which created the script shown below however it hasn’t worked. I’ve tried using FindFirstChild() and WaitForChild() both not working. I’ve tried looking in the client and server to see what was wrong while playing, both show that “menuCam” exist.
local menuCam = workspace:FindFirstChild('Map') and workspace.Map:FindFirstChild('Assets') and workspace.Map.Assets:FindFirstChild('MenuCam')
local maxTilt = 10
local function updateCamCFrame()
if menuCam and frame.Parent.Visible == true then
currentCam.CFrame = menuCam.CFrame * CFrame.Angles(
math.rad((((mouse.Y - mouse.ViewSizeY / 2) / mouse.ViewSizeY)) * -maxTilt),
math.rad((((mouse.X - mouse.ViewSizeX / 2) / mouse.ViewSizeX)) * -maxTilt),
0
)
else
print("You don't have menuCam or your frame isn't visible.")
end
end
It’s most likely StreamingEnabled causing the issue. It causes random errors like this all the time, what I do is put the CFrame directly into the script.
In Play mode, find MenuCam, then print its full CFrame:
print(workspace.Map.Assets.MenuCam.CFrame)
Copy the entire thing and put it into your script:
local menuCamCFrame = CFrame.new(-- paste full CFrame here)
Now you don’t need to load or have the part, you just store the information in your script.
MenuCam > ClassType, ensure it’s a part and not a camera. Instead of chaining FindFirstChild, you can simply reference it and try to brute force it so it keeps trying to find the part no matter what.