I’ve copied your code and am running it in a Fn on the CS but I could only get the changes to save if I set ‘Override Construction Script’ = ON on the details panel for the spline component in level. If I ever uncheck this, it reverts back to default.