If you want the Z axis to raise after a print you would want to use something like the following in your Ending Script:
G91 ; set to relative positioning
G1 Z5 F1000 ; move Z axis up
G90 ; set to absolute positioning
This would move the Z axis 5mm up from wherever the print stopped. As a warning though this can cause issues if you are printing parts that are close to using up the full Z build volume. Usually you would just want to home the X and Y axes to get the nozzle away from the part after the build is complete.
Hi
I'm very new to this game would this script work on my Snapmaker Original as mine always stops at the top of the print then slowly burns down into it spoiling the end product which is really frustrating after waiting for 10hrs for it to end I've checked the troubleshooting and there's nothing there to help
Are you using the Snapmaker profile available in the software? I would recommend loading this and using that profile as it has an ending script that will raise the Z to the Max value when the print is complete.