# Cannot switch from my GUI to my level

**URL:** <https://forum.defold.com/t/cannot-switch-from-my-gui-to-my-level/72187>\
**Category:** Questions\
**Created:** [December 6, 2022, 4:27pm UTC](https://forum.defold.com/t/cannot-switch-from-my-gui-to-my-level/72187 "2022-12-06T16:27:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cameron\_Sutherland](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/cameron_sutherland/32/30558_2.png) [@Cameron\_Sutherland](https://forum.defold.com/u/Cameron_Sutherland)\
**Post date:** [December 6, 2022, 4:27pm UTC](https://forum.defold.com/t/cannot-switch-from-my-gui-to-my-level/72187/1 "2022-12-06T16:27:29Z")

</div>

I cannot switch from my Gui to my level. I am using collection proxies and I can’t tell the issue.

Error: Could not send message ‘start\_game’ from ‘mainmenu:/go#mainmenu’ to ‘main:/go#loader’

My main menu script:

```lua
function init(self)
	msg.post(".", "acquire_input_focus")
end

function on_input(self, action_id, action)
	if(action_id == hash("touch") and action.released == true) then
		local textBegin = gui.get_node("startGame")
		if(gui.pick_node(textBegin,action.x,action.y)) then
			msg.post("main:/go#loader", "start_game")
		end
	end
	if(action_id == hash("touch") and action.released == true) then
		local textExit = gui.get_node("exitGame")
		if(gui.pick_node(textExit,action.x,action.y)) then
			msg.post("@system:", "exit", {code = 0})
		end
	end    
end

```

---

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [December 6, 2022, 4:45pm UTC](https://forum.defold.com/t/cannot-switch-from-my-gui-to-my-level/72187/2 "2022-12-06T16:45:04Z")

</div>

> [@Cameron\_Sutherland](#):
>
> I cannot switch from my Gui to my level.

It is almost impossible for us to understand what you mean. Please provide more info.  
You are trying to send message from “mainmenu” collection to “ **main** ” collection. Is “ **main** ” collection even exist? Seems like it doesn’t.  
You can share your proxy loading( main:/go#loader) code for example… Or a small repo case.

And please use “code fences” for your codes, it is so hard to read this way:

```lua
function init(self)
   msg.post(".", “acquire_input_focus”)
end

function on_input(self, action_id, action)
   if(action_id == hash(“touch”) and action.released == true) then
      local textBegin = gui.get_node(“startGame”)
      if(gui.pick_node(textBegin,action.x,action.y)) then
         msg.post(“main:/go#loader”, “start_game”)
      end
   end
   if(action_id == hash(“touch”) and action.released == true) then
      local textExit = gui.get_node(“exitGame”)
      if(gui.pick_node(textExit,action.x,action.y)) then
         msg.post("@system:", “exit”, {code = 0})
      end
   end
end

```
