lua text script

-- Step 1: Define a function named "calculateSum" with two parameters, "a" and "b".
function calculateSum(a, b)
  -- Step 2: Inside the function, calculate the sum of the two parameters.
  local sum = a + b

  -- Step 3: Return the calculated sum.
  return sum
end

-- Step 4: Call the function with arguments 5 and 10, and store the result in the variable "result".
local result = calculateSum(5, 10)

-- Step 5: Print the result to the console.
print("The sum is: " .. result)