-- name2float - Set float text from object name -- self-deleting -- Set to the desired float text, or leave empty to use the object description -- Use '~' to insert a newline local FLOAT_TEXT = "" local color = vector.create(1, 1, 1) local alpha = 1.0 local function main() if FLOAT_TEXT == "" then -- get description FLOAT_TEXT = ll.GetObjectName() end -- do it with Lua string manipulation ll.SetText(FLOAT_TEXT:gsub("~", "\n"), color, alpha) -- and delete it ll.RemoveInventory(ll.GetScriptName()) end main()