I've tried a debounce script, a wait, and everything but this won't work...

local Restart = game.ReplicatedStorage.Restart

while true do
	if Restart.Value==true
	then game.Workspace.Scripts.ResetGame.Disabled = false
		end
	end

It won't disable the script from the string value, but if I try it in a click detector brick it disables...