Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 9 years ago

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?

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. alphawolvess 1784 — 9y
1
Sounds like you need a text label. Lacryma 548 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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)

Ad

Answer this question