In the editor when the project is played and the main scene starts everything is fine. The play button works and loads the scene which contains the level. But when i decide to export the project the button just shows the click animation but nothing happens. this is my script that controls the main menu:
onready var highscoreLabel = get_node("HighScore")
var file = File.new()
print("creating save file")
var content = file.get_as_text()
highscoreLabel.set_text("highscore: " + content)
print("reading save file")
Any help would be appreciated!