Moving the MainMenuExpBar in Classic WoW (Script)

Has anyone manged to move it? My script works if i use it as a in-game /script macro, but once i include it in my .Lua file it wont work properly. Any ideas how to fix this?

This is my main menu bar script

MainMenuBar:ClearAllPoints()
MainMenuBar:SetPoint(“BOTTOM”, 156,11) MainMenuBar.SetPoint = function() end

And heres the one im using to move the exp bar

MainMenuExpBar:ClearAllPoints()
MainMenuExpBar:SetPoint(“CENTER”,-110,-31) MainMenuExpBar.SetPoint = function() end

Thanks