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

How do I print a Bool Value?

print(game.ServerStorage.BoolValue.Bool)

This is not that much of an important question I think, but I would like to know as this could possibly help with bool values in the future.

The bool at the end of the code is what I named the value.

My tutorial claims that this is the proper way to do it and that it should print either true or false (In this case false as that is what I set it to.

Instead of printing false, it instead just says that BoolValue is not a member of the server storage.

When I remove BoolValue, It just prints Bool.

1 answer

✓ Accepted answer

Try adding .Value right after Bool, that should give you the value of the boolvalue instead of the name.

3 comments

0

I edited this actually because i wrote it wrong.

0

This is useful though I just had to remove BoolValue.

0

so you have a BoolValue named bool under serverstorage? So you access the bool itself with ServerStorage.Bool, and then you access the value with ServerStorage.Bool.Value

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