I'm assuming you want that function to fire everytime that bool is changed to true, rather than checking if it's true just one time. To do this, you need to use the bool's Changed
event, it will return a parameter of the boolvalue's value which can be either true or false.
01 | local workspace = game:GetService 'Workspace' |
02 | local bool = workspace:WaitForChild 'BoolValue' |
05 | local message = Instance.new( "Hint" ,workspace) |
06 | message.Text = "This is a message" |
07 | game:GetService 'Debris' :AddItem(message, 4 ) |
11 | bool.Changed:connect( function (value) |