ConfirmButton.MouseButton1Click:Connect(function(plr) if TextBox.Text == "2024" then AnswerText.TextColor3 = Color3.fromRGB(154, 255, 107) AnswerText.Text = "Correct!" CorrectSound:Play() wait(2) offtransparency() else AnswerText.TextColor3 = Color3.fromRGB(255, 110, 110) AnswerText.Text = "Incorrect!" wait(2) AnswerText.TextColor3 = Color3.fromRGB(255, 255, 255) AnswerText.Text = "Your answer: " TextBox.Text = "" CorrectSound:Play() end end)
Вот код: