Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 7 years ago
Edited by OldPalHappy 7 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
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.

2
Additionally, `x == false` is more to type than `not x` adark 5487 — 7y

1 answer

Log in to vote
2
Answered by 7 years ago

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
0
God damn it how could I miss it? superalp1111 662 — 7y
Ad

Answer this question