Trying to learn lua, experimenting with things of my own. Probably making some stupid mistake here, but whatever.
Basically when the script is run; it’s meant to check if you’re hurt or not. If your health isn’t 100, then you are registered as hurt, and it prints this to the console.
Am I addressing the player’s health wrong?
print(“Healthcheck script has been ran.”)
if player.Health == 100 then
Msg(“You are feeling perfectly fine.”)
Msg(“You are hurt.”)
I always receive the message: “You are hurt!”, even when the player isn’t harmed at all.