Those are MOVIES. HOLLYWOOD. "Stripes" is funny; I love the way Warren Oates played Sgt. Hulka.
But it's not REALITY...nor is "Full Metal Jacket" in the modern military. If a DS/DI/MTI/CC/RC hits a recruit...career-ending move, and they know it.
They are "discouraged" from using foul language nowadays, but like THAT is going to happen!
I can't tell you from experience how the Army/Marines/Navy/Coast Guard would handle it, but it's not bound to be pleasant in any service.
I went through Air Force BMT some decades ago. My MTI couldn't finish a sentence without dropping the "F" bomb or threatening to beat seven shades of s**t out of us...but he never DID it, and he knew he COULDN'T. He was like a playground bully - young punk SrA (E-4) severely lacking on the maturity side.
Now our Training Superintendent...BIG black Blue Rope MSgt...James Earl Jones "Voice Of Doom." Rarely yelled - didn't HAVE to. He spoke, and you DID IT, and he knew his stuff.
As to mouthing off? You will be on the TI's s**t list for the rest of BMT, and every s**t detail s/he can think of...guess who's going to end up with it? And guess who's going to be on the rest of your Flight's s**t list when they all get smoked because of your smarta** mouth? I don't think "blanket parties" happen nearly as much as they used to, but it will sure be lonely going through BMT with nobody wanting to be near you because your BB a** loaded your .357 Magnum mouth. And that will follow you to your first duty station (or your Guard/Reserve unit) in your personnel file.
In the AF, there's a little piece of paper called a Form 341. A TI usually demands one when you've made a bad move. Accumulate too many of those and you could be Recycled (set back in training) or on your way back home for Failure To Adapt...if you're lucky you might get an Entry-Level Separation (uncharacterized discharge), or if you're less-than-lucky you might get a Bad Conduct Discharge (BAD NEWS).
If you're going to be a comedian, save it for when you complete Basic Training/Boot Camp and your Technical Training, and you're off duty and it's open-mike night at your local comedy club.