So when I enter text inside this textbox, I have an imagebutton that acts as a checkmark that will be clicked to see if the answer is correct or not, but even though the answer is correct, the answer being "Socrates", it still does not respond.
Here is the code
local gui = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Arro1
local text = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.TextLabel
local two = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.two
local box = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.TextBox
local checkmark = game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.ImageButton
local answer = "Socrates"
if answer == box.Text then
checkmark.MouseButton1Click:Connect(function()
two.Visible = false
end)
end

2 comments
I appreciate this, thank you!
Your welcome :)