Ramdomcreatoroncastle This is the script I used
function onMessage(message, triggeringActor)
if message == "askForText" then
castle.getTextInput(function(text, canceled)
if canceled then
print("canceled")
else
local label = castle.actorsWithTag("playerlabel")[1]
label.text.content = text
end
end)
end
end