Without an example of your existing TwineScript it is difficult to determine why it is not working for you.
The following example demonstrates a number of different methods that can be used to output the contents of story variable, they range from using Naked Variables to the different <<print>> related macros and they all work as expected.
<<set $name to "John Smith">> Your name is $name. Your name is <<print $name>>. Your name is <<= $name>>. Your name is <<- $name>>.