Viewport Frame not working or?

Hello!
I wanted do in my shop when player click on item then the item will show in ViewPortFrame but is not working here is photo


Thank for reading!

you need to insert LocalScript into Item button

local Button = script.Parent
local Gui = script.Parent.Parent.Parent.Parent.ViewFrame

Button.MouseButton1Click:Connect(function()
Gui.Visible = true
else
Gui.Visible = false
end)

WHAT I want test it when I put into part but it don’t show part I don’t need script

Make sure to set the handles position to something like 0, 0, -5, because that’s where the viewport is. The camera instance isn’t necessary in this case.

This not working I still don’t know why.