TileMap.SetTile doesn't work

@Haferloke

“it seems like the forum crapped the code but I hope it’s still understandable”

Here is how to format your post code blocks: