script issue with hud thing

EDIT:: FIXED

class Scene_Map < Scene_Base
  alias gold_hud_start initialize
  alias gold_hud_update update
 
  def initialize
    gold_hud_start
    @Gold_HUD = Window_Gold.new()
    @Gold_HUD.x = 500
    @Gold_HUD.y = 300
    @Gold_HUD.opacity = 0
  end
 
  def update
    gold_hud_update
    @Gold_HUD.refresh
  end
end

i found this on the forums but it throws the error @Gold_HUD = Window_Gold.new(x,x) saying argument 2 instead 0 and when i remove it i cant move the window. i wanna set this to bottom right corner. the script works fine i just need to know how to move the window
Window_Gold does not take any arguments when you create it, so you're giving it an invalid number of arguments. If you're trying to position it when creating it, you can't do it that way. You'll have to position it on different lines, not when creating it.

Original thread: https://forums.rpgmakerweb.com/threads/script-issue-with-hud-thing.53272/