Hi,
I am getting a warning after trying this:
function Interaction.Triggered(self: ClassType): ()
if not self.CurrentObject:FindFirstChild("Interaction") then
warn("Couldn't find interaction module inside of:", self.CurrentObject.Name)
return
end
local Module = require(self.CurrentObject:FindFirstChild("Interaction"))
if type(Module.Interact) == "function" then
task.spawn(function()
Module:Interact()
end)
end
end
This module that I am trying handles interaction from another module that is placed inside any object that is interact-able.
I get the warning: Unknown Require: Unsupported Path