GameTab Hi! Please consider adding more info.
Looking at your code, I can see that no variable
coins is defined - try this:
var coins = 0
if coins == 2:
Player.global_position = Vector2(0, 0)
I am not sure if this is the problem, but it should fix code errors you have!