having AI to deal damage to player

the print string doesn’t work either.
my friend is working on it and found some form of a solution. and i maybe beable to work on it if it work as i like it to