Look at this project first https://scratch.mit.edu/projects/1323337519/ The link for the script is there