Button failing after public publish

The restart button in scenes won’t work but it works in Unity. How do I fix this?