Module script isn't there but it is?

stupid local scripts

  • local script-
local parent = script.Parent
if parent.Parent:IsA("Backpack") then
	local module = require(parent.ModuleScript)
	local player = module.PlayerName
	player.Value = parent.Parent.Parent

	if player then
		local HUD = player.PlayerGui:WaitForChild("HUD")
		parent.Equipped:Connect(function()
			HUD.EquipmentTab.Equipped.EquippedTool.ImageLabel.Visible = true
		end)

		parent.Unequipped:Connect(function()
			HUD.EquipmentTab.Equipped.EquippedTool.ImageLabel.Visible = false
		end)
	end
end

image

same thing happened with values

Try doing:

local module = require(parent:FindFirstChild("ModuleScript"))

image

I believe this script is running before the ModuleScript loads. Try this,

local module = require(script.Parent:WaitForChild("ModuleScript", 10))