#Need help with making stamina and hp script - its for learning
1 messages · Page 1 of 1 (latest)
That and
Put it right next to the 100 <
The error is that you are putting "and" insie the if statement
Inside*
I guess you want to do like: if hp < 100 and mana < 100
Nvm can you tell full script?
your "and" statement is inside the if statement
What can i replace and with?
i have a gut feeling you arent trying to learn..
if statements are structured with conditions at the top
nah it will teach on mistakes
then wrapped between then and end sections
so
if *condition* and *condition2* then
-- do stuff
end
What? You just need to change that line bro
local hp = 150
local mana = 100
if hp > 100 and mana == 100 then
print("Your great!")
end
if mana > 100 and hp < 100 then
print("Train more!")
end
if hp < 100 and mana < 100 then
print("your bad")
end