Why this doesn't work?

So I’ve maded, Thanks for the help. Here’s the final script that works if someone needs it.