Code: Select all
-- bluMisc_0.1.0/info.json
{
"name": "bluMisc",
"version":"0.1.0",
"title":"", "description":"", "author":"", "contact":""
}
-- bluMisc_0.1.0/control.lua
script.on_load(function()
return game.players[1].print('test')
end)
-- 'game' is nil and throws an error when trying to index it
Code: Select all
-- asdf_0.1.0/info.json
{
"name": "asdf",
"version":"0.1.0",
"title":"", "description":"", "author":"", "contact":""
}
-- asdf_0.1.0/control.lua
script.on_load(function()
return game.players[1].print('test')
end)
-- everything works fine, except 'test' doesn't get printed.