You can set this variable just as any variable in a node script (doesn’t matter if it’s with a plugin or in the game). Get the node, and do myNode.speed = x for example.
If you want to set the variable from the editor, use the export keyword.
Oh my god, I feel so stupid right now. The export keyword was exactly what I needed! Thank you!