Recently i made textbox, frame, textlabel and button.I planned it to happen like this: I want the script to draw a random word with the one given by me.After generating the variable, he will set it as text in the textlabel. Then when the player types the generated word into the textbox and clicks the button, here we have two variants.If he types a valid word, a new one will be generated; however, if he types a wrong word, the visible frame changes to false.
this is what I did, unfortunately, when generating the word, it either stutters or doesn't work.
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 == ("Here I tried to push the script") then
TextBox.Text = ("")
else
frame.Visible = false
end
end)
does anyone have an idea how to do this?

1 comment
can you include a photo of the explorer with the frame, button etc.?