How to pass variables

I am using two variables in my script ,Now I want to use same variables in another script.
How can we use those variables .
Please give me suggestion .

(* firstScript *)
set x to "Hello"
set y to "World"
secondScript x,y -- call secondScript, passing x and y as parameters

(* secondScript *)
params foo, bar -- variables to receive incoming parameter values
put "SecondScript received: " & foo && bar