local cam = Instance.new("Camera")
cam.Parent = itemSelection.ItemView
itemSelection.ItemView.CurrentCamera = cam
✓ ANSWER ACCEPTED
script keeps saying. CurrentCamera is not a valid member of ImageButton "ItemSelection.ItemView" ?
1 answer
✓ Accepted answer
I don't think local cam = Instance.new("Camera") is a thing.
To do this you need a LocalScript to get the client's camera.
LocalScript
local cam = workspace.CurrentCamera
You don't need to parent it. It's obviously a child of the workspace.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
Also, where did you learn to do (local cam = Instance.new("Camera") cam.Parent = itemSelection.ItemView itemSelection.ItemView.CurrentCamera = cam) ?
This could be taken down for being non-descriptive since I have no clue on what you're doing. All you did is make the question as the error message and provided code which isn't in a code block.