function test()
local player = getSpecificPlayer(0)
local textebot=getModFileReader("NAMEOFMOD","texte.txt",true)
local phrase = textebot:readLine()
textebot:close()
if phrase ~= nil then
player:Say(phrase)
local textebot=getModFileWriter("NAMEOFMOD","texte.txt",true, false)
textebot:write("")
textebot:close()
end
end
Events.OnObjectLeftMouseButtonUp.Add(test)
create a file texte.txt with a string.
Clic left butoon show the string and delete in txt file