Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

script keeps saying. CurrentCamera is not a valid member of ImageButton "ItemSelection.ItemView" ?

local cam = Instance.new("Camera")
	cam.Parent = itemSelection.ItemView
	itemSelection.ItemView.CurrentCamera = cam
	

2 comments

0

Also, where did you learn to do (local cam = Instance.new("Camera") cam.Parent = itemSelection.ItemView itemSelection.ItemView.CurrentCamera = cam) ?

0

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.

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.