So I wanna make a terminal like thing for a upcoming game I am making BUT I do not want say text like this
to be deletable how would I do that without it being weird like I don’t want it to be type able there like my preview code let me do
local frame = script.Parent
local MainText = frame.MainText
while true do
local stringLength = string.len(MainText.Text)
wait(0.5)
while true do
wait(0.005)
if stringLength <= 56 or 55 then
MainText.Text = [[Last Login: the other day
admin@constructionComputer ~ % ]]
end
end
end
?
Another thing is how do I make it so enter creates a new line with at the beginning and so you cannot go back up a line and stuff.
I havent tested this however Im pretty sure hitting enter would cause you to lose focus so you would need to refocus back on it. You could enable rich text and add \n to the end of the string to create a new line. In order to prevent the user from deleting anything already written you would probably need to add to the preface each time they do hit enter.