Does it matter that you wrote positionToTile"X" twice in your code? Is the second one is supposed to be positionToTile"Y"?
Yep definitely it should be positionToTile"Y" good spot
"Not sure if that will fix your issue though" for:
So everywhere I read that you can use PositionToTileX function... yet this function is not accessible in my code... it says: