i need to start my level and it give me this error
ERROR:SCRIPT: main/main.script:28: The receiver shouldn’t be `nil`
stack traceback:
[C]:-1: in function post
main/main.script:28: in function <main/main.script:15>
this is my code in main
local data = require(“main.data”)
function init(self)
msg.post(".", “acquire_input_focus”)
msg.post("@render:", “use_fixed_fit_projection”, { near = -1, far = 1 })
– seed random number generator
math.randomseed(os.time())
math.random()
– message the render script to set the background color
msg.post(’@render:’, hash(‘clear_color’), {color = data.bg_color})
–load the start collection
msg.post(‘go#start’, ‘load’)
end
function on_message(self, message_id, message, sender)
if message_id == hash(‘show_game’) then
if data.state == data.STATE_START then
msg.post(“go#start”, “unload”)
else
msg.post(“go#gameover”, “unload”)
```
end
msg.post("go#game", "unload")
elseif message_id == hash('show_gameover') then
msg.post("go#game", "unload")
msg.post("go#gameover", "load")
elseif message_id == hash('proxy_loaded') then
msg.post(sener, 'enable')
end
end
please help