Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to prevent anyone from changing the text of a textbox?

I've seen other people do it, but I don't know how people do it. So, how do I prevent people from changing the text?

2 comments

1

The best thing you can do is just use a Textlabel which cannot be changed like the Textbox can. I don't see the point of using a textbox and making a script to keep it unchangeable.

1

Sounds like you need a text label.

1 answer

I'd suggest making a Text Label if that is what you mean; but otherwise for a textbox, you can make a script such as this(put it in text box):

str = script.Parent.Text
script.Parent.Changed:connect(function(change)
if change =="Text" then
script.Parent.Text = str
end
end)

This discussion is preserved as it was. New answers, comments, and votes are closed.