I created a local script that checks text in textbox and closes frame. Here is:
local TextBox = script.Parent.Parent.Parent.TextBox
local giButton = script.Parent
local frame = script.Parent.Parent.Parent.Parent.Frame
local button = script.Parent.Parent.Parent.Wii.Text
giButton.MouseButton1Click:Connect(function()
if TextBox.Text == ("Example Word") then
TextBox.Text = ("")
frame.Visible = false
wait (5)
else
frame.Visible = false
end
end)
Of course, I created a textlabel so that the player could know what to type in the textbox.
Of course, players could copy and paste that word hundreds of times. I decided to make the words random. It means that from a few words I have selected, the script will randomly select one word and then insert it into the textlabel. It will also set it as the desired search result.
Unfortunately, when I tried to do it, either something didn't work or it was very lazy.
Anyone have an idea how this can be done?

1 comment
Can you give more explanation what are you trying to achieve