Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

What is this code's lovely problem?!!!?! (More text to be specific)

print(Player.Cooldown.Value)
print(Player.Unconscious.Value)
print(Player.LyingDown.Value)
if Player.Cooldown.Value == false and Player.Unconscious.Value == false and 	Player.LyingDown == false then
	print("IN THE IF")
end

The output is:

false
false
false

And it does not print "IN THE IF", what is the problem? There is no other code mixing with it or changing values.

1 comment

2

Additionally, x == false is more to type than not x

1 answer

✓ Accepted answer

You forget the .Value

if Player.Cooldown.Value == false and Player.Unconscious.Value == false and Player.LyingDown.Value == false then
    print("IN THE IF")
end

1 comment

0

God damn it how could I miss it?

This discussion is preserved as it was. New answers, comments, and votes are closed.