If the camera is in a part then make the screen red

  1. What do you want to achieve? If the camera is in a part then make the screen red

  2. What is the issue? Not sure how to do it

  3. What solutions have you tried so far? Cant find it on the dev hub.

1 Like

Elaborate on your title.

If you want to know if the camera is inside a part with CanCollide off, just use the camera CFrame’s position and see if its within range of the part’s size.

You can also do simply just do a very short raycast and see if the part you hit in the raycast is that part.

1 Like

If you want to make the screen red, I’m assuming you want a GUI to pop up. If I’m wrong, correct me but here is a code.

local cam = Instance.New("Camera")
cam.Name = -- anything you want 
cam.Parent = workspace.Part -- assuming you already have the part in the workspace

-- make a screen gui and insert a frame that's red
if cam.Parent == workspace.Part then
-- screen gui pop up here just use gui.Enabled or frame.Visible 
end

Not sure if that’s what your asking but hope this helps.

have you thought about learning how to script so that you can try making something like this?