Inside my weapon script, I have a line that checks if the player is sitting while trying to equip a weapon
local function toolEquipped()
–…
if plr.Character.Humanoid.Sit == true and plr.Character.Humanoid.SeatPart ~= nil then
plr.Character.Humanoid:UnequipTools()
end
–…
end
–…
tool.Equipped:Connect(toolEquipped)
This gives me the warning: “Something unexpectedly tried to set the parent of [WEAPON] to Backpack while trying to set the parent of [WEAPON]. Current parent is [PLAYER].”
How can I fix this?