so i have the server i need and everything but it all comes crashing down with pterodactyl as I don't know much on it can someone help or guide me please
Pterodactyl has a discord, why don't you go there for dedicated support?
Regardless of where you ask - if you want help you should provide detailed information. Tell exactly what commands you entered, from start to finish, not skipping anything and provide the outputs that you've gotten, especially the errors.
For pterodactyl or any gaming server, you need a real server with a real operating system that you get full control over.
Instead look for cheap VPS options in your country. Make sure their specs are good enough for a minecraft server. It will cost ~ 5-10$ per month. Then:
Point the domain from cloudflare to that VPS by changing the dns records in cloudflare
if you want help you should provide detailed information. Tell exactly what commands you entered, from start to finish, not skipping anything and provide the outputs that you’ve gotten, especially the errors.
The pterodactyl discord will probably be more helpful there.
how do you know it's working if you can't connect?
if you run the server on your computer, did you set up the port forwarding? does it work if you just connect to localhost, or the local ip of that computer?