(live: 500ms)[ <!--This allows the below code to run every half a second-->
(if: $name contains " ")[(set: $name to (upperfirst: (prompt: "Invalid name. Please choose a name with 1 word(no spaces)","")))]
This makes it so if they include a space in their input they would be re-prompted to input a valid name; and because I have the
(live:) macro, it will run every half a second(or shorter if I wish). I have other code that will make sure they can use “Mr.” or “Mrs.” before a space(like “Mr. Unknown”) if they wish as well as code to make sure they can’t use any weird characters in their name like “?” or “>”.
Even though I ended up figuring out the problem on my own, I really do appreciate the reply.