Hello and welcome to the forum!
Chances are that when replaying the script, you are not receiving the expected responses, and that this subsequently leads to stuff not happening as expected either. The likely culprit is hard-coded values (tokens, session IDs, etc.) that haven’t been correlated; it is fairly unusual for a script to work without modification after generation from a recording.
Have a read through the article and see if you can find any dynamic values in the generated script. If you find them, you’ll need to figure out where they came from (most likely in a previous
response.body), add some code to extract them into a variable, and substitute the hard-coded value with the variable wherever it appears in the script.