Table value not changing when it should

wait i think i found out the issue. It was because the table values were set in the function so whenever i called it, it would reset, so i think you were correct.

Yup that’s what I said in this post

but you replied saying that’s what you wanted