Lua Code Error

Please tell me what i’ve done wrong in my lua code.I’m trying to make a RP Money Printer Hack…
local Ent = LocalPlayer()
local trace = Ent:GetEyeTraceNoCursor()

function Spawn()
Printer = ents.Create( “money_printer” )
Printer:SetPos(trace.HitPos + trace.HitNormal * 32)
Printer:Spawn();
Printer:SetColor(255,0,0,255)
Printer:SetOwner(Ent)
end

concommand.Add(“MoneyPrinter”, Spawn )

function Menu2()
local Menu = vgui.Create( “DFrame” )
Menu:SetPos( 50,50 )
Menu:SetSize( 1000, 900 )
Menu:SetTitle( “Rp Hacks” )
Menu:SetDraggable( true )
Menu:SetVisible( true )
Menu:ShowCloseButton( true )
Menu:MakePopup()
local PrinterB = vgui.Create( “DButton” )
PrinterB:SetParent( Menu )
PrinterB:SetText( “Spawn Printer” )
PrinterB:SetPos( 25, 50 )
PrinterB:SetSize( 150, 50 )
PrinterB.DoClick = function()
RunConsoleCommand( “MoneyPrinter” )
end
end
function Visible()
Menu.Visible( true )
end

concommand.Add("+menu", Visible )

function Non_Visible()
Menu.Visible( false )
end

concommand.Add("-menu", Non_Visible )

concommand.Add(“openmenu”, Menu2 )
Edit1:The Menu WILL NOT open And I Get This Lua Error in Console:

[lua\autorun\client\rphack.lua:38] ‘(’ expected near ‘-’

What is wrong with it?

The Menu Will Not Open…

Not sure if Lua is happy with function names containing '-'s. Try renaming “Non-Visible”.

Also, you declared Menu locally (local Menu), yet you try to access it in a seperate function. Remove the “local”.

kk i did let me test ingame

Quite correct. However,

_G[“Cool-Shit”] = function() end

now im gettting [lua\autorun\client\rphack.lua:3] attempt to call method ‘GetEyeTraceNoCursor’ (a nil value)
:S im trying to make it spawn where my cursor is but at 32 z pos

[editline]08:05PM[/editline]

ive fixed most of the problems but now it says:

[@lua\autorun\client\rphack.lua:8] Tried to use a NULL entity!
which is the money printer
please help im a newb lua coder…