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

How to use textboxes to write certain things?

Asked by 3 years ago

How do I make the game 'notice' when a player types a certain thing in a textbox?

1 answer

Log in to vote
0
Answered by 3 years ago
Edited 3 years ago

You could use a localscript to check if there is anything in the textbox and then check if the text you want is in the textbox

basically like this

local textbox = script.Parent.Parent.Textbox --Finds Textbox

textbox.Changed:Connect(function()--Creates a changed function
if textbox.Text == "thewordyouwant" then--checks if the right word is in textbox
    --make it do what you want here
    end -- ends the if statement
end) -- ends the function

accept if helpful

Ad

Answer this question