I'm trying out module scripts for the first time to increase efficiency in my game, but they seem a little complicated.
So, for example, I use this a lot:
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
-- code
end
end)
Could I put any of this into a module script? And what would it look like? So instead of having to type out all that I could just do maybe something like
require(TouchedScript) require(HumanoidCheck)
