Boolean Scripting Help (JavaScript)

Hello everyone,

I’m working on the pause menu for my game right now. So I have a script that hides the hud (gui text and gui textures) when paused, and was wondering how I would reverse the script so that if the script is attached to the puase screen gui stuff it would show it instead of hiding it. Heres the script:

function DidPause (pause : boolean)
{
	if (guiTexture)
		guiTexture.enabled = !pause;
	if (guiText)
		guiText.enabled = !pause;
}

Thanks for your help!

Can anybody help? Thanks!

take the “!” away from “= pause;” ?

It works perfectly! Thank you so much, you’re epic!