I have got it working! :)
So in your sword script you want something like this...
onready var player = get_parent().get_node("player")
func _ready():
print(player.health)
and then clearly in you player script you need var health = 100
somewhere.
Let me know if this works!