Flying doesnt work on Dedicated Server but works in PIE?

I have Setup a Flying Mechanic for Third Person Character when i try to run on Dedicated Server i get lots of errors in PIE i get none. My Question is Why doesnt Fly work at all character starts the fly animation then just does the end of the code. What do i need to do to have Dedicated server Support for Flying also sprint just lags why is this also. Please need help i know nothing on this subject or why its happening.

Since i see this happening on this and other forum Channels ill Answer my Own Question for whoever runs into this issue. You have to make new code to cover Both the Client Server and the Server. It should look something like this

You have to setup the code basically in the Server and the Multicast Server First. Then Re-setup the function so it can be used by a button or whatever you choose.