I was watching a video on grid basic movement and I was struggling with this script line.
var cell_size = 64 # 16,32,64...
the text doesn't turn red so the I am thinking it messes up where the grid's placement is.
Your question lacks information. I'm assuming in your video the person made a mistake which makes the selected line go red, in which case since you did not it didn't turn red.