✓ Accepted answer
a.b is short for a["b"], but only works if the right side would work as a valid variable name. So a.b would work (meaning a["b"]), but not a.b c (you would need to do a["b c"]).
So Lua reads it as something else: it's reading it the same way as it would read
game.StarterGui.Shop.MainFrame.SafeArea.ItemInformation.ItemViewport.Orange
SwordHandle.CFrameValue.Value = game.Workspace.CurrentCamera.CFrame
which someone reading would, like Lua did, think the person forgot = something ("expected assignment") or brackets if they don't know what indexing game multiple times gives ("expected a function call").
It can be fixed by replacing ItemViewport.Orange SwordHandle with ItemViewport["Orange SwordHandle"].