Local variable in function

Whenever I try to use a manual version I get an error saying:

:exclamation:go.set can only access instances within the same collection.

urls.lua

local URLS = {}

URLS.colorwheel = msg.url("colorwheel")
URLS.spinner = msg.url("spinner")

return URLS

object.script

local urls = require("assets.scripts.modules.urls")

function rotate()
	go.set(urls.colorwheel, "euler.z", 0)
	go.set(urls.spinner, "euler.z", 0)
end