Being a mechanic most my life, I could easily have a customer come in and complain with making noises and dropping pennies on the ground, and I’d have a great idea what they were trying to say was wrong with their car…
However, I have yet for one to just hand me the keys, and not even have the car there, and say “don’t work, fix”…
Please show us the relevant code, by pasting it into the proper “tab” when writing your post, this post explains in great detail how: Using code tags properly
Which also means to edit your original question. ^ ^ ^
Then once we see what the code is doing, we can help show you how to fix it.