If you make a GUI in sript I use the command
format slot 35 of cake named "cake" to close then run [execute player command ""]
Do you make a cake in the GUI and with which command can I delete it when I move the one forward, for example
First you have to do your code right.
Format Slot 35 of Player with cake named "& 7cake" to close then run [execute Player command ""]