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
- error message -

same thing happened with values