Two things come to mind , one glue sticks are old and two glue gun is to hot schorching the glue.
pobably the second one once i left it on for like 2 hours. is it bad?
Glue gun glue tends to be darker when it's cooler.
yes it still works fine the glue just comes out yellow when i put it in the glue gun