The return object must be inside on the function that you're calling.
function shieldDisplay.new()
local shieldDisp = display.newText("Shield: "..tostring(Cshield), 1165, 20, native.systemFont, 30)
shieldDisp:setTextColor(9,205,235)
return shieldDisp
end