--MainModule
local _M = {}
script.Parent = game.Workspace
function _M.give()
game:GetService("InsertService"):LoadAsset(842321306).Parent = game.Players.Player1.Backpack
end
return _M
--Script
local sword = require(game.Workspace.MainModule)
sword.give()
So what I am trying to do here is insert a sword I made yesterday into a script builder with module scripting I am new to module scripting and I don't fully know what I am doing I was using the wiki but nothing seemed to happen, please can someone explain to me. I didn't know if I needed to add the errors I was getting please tell me if I need to.

2 comments
Yes, please do add any errors you're getting; adding errors gives people additional insight into what your problem may be.
Like always you can't be sure things instantly load. WaitForChild! Otherwise, I'm pretty sure LoadAsset loads stuff as children of a model? Look into that.