✓ Accepted answer
Explanation
The reason the output is printing attempt to index local 'MenuOver'( a boolean Value) is because that you have made a simple mistake in the script. You forgot to add the .Value after MenuOver because a BoolValue has a value inside it's properties called Value itself. You are trying toprint it's value when you haven't even set it's value, you have set it's boolean data type.
Problem
local MenuOver = script.Parent:FindFirstChild("MenuOver")
MenuOver = false
print(MenuOver.Value)
Adding a .Value after MenuOver would fix your problem.
Solution
local MenuOver = script.Parent:FindFirstChild("MenuOver")
MenuOver.Value = false
print(MenuOver.Value)
Solution 2
local MenuOver = script.Parent:FindFirstChild("MenuOver")
MenuOver = false
print(MenuOver)
Small tip
If you are ever trying to print something that has a value, just remember to add ``.Value` for example;
print(game.Workspace.Part.StringValue.Value)
I hope this helps you and please up vote this if it has fixed the issue..
3 comments
Uhm, where's the other part of the code?
Is the script inside the bool value and is this the full code?
just add ".Value" at the end, you're directing it to the instance when you just do "MenuOver"