TPS Laser Weapons Dont Work As Expected

By looking at your gun sprite, it seems that it is not properly aligned for rotating. You need to import your sprite aligned from West to East (Basic game making concepts - What you need to know to start with GDevelop - GDevelop documentation). Only then the engine will rotate it in the intended way towards your mouse position. I would also, as Mirquiso suggested, create a specific point for the bullet to spawn instead of using the origin point.

In any case your gun sprite should look like this by default:
Capture_gun2

Thanks for all the help, I found another way to achieve the effect. In case anyone is interested, this is how i did it: