You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Create a working Code GUI.
-
What is the issue? Every time I put in the right code, it only comes up as incorrect
-
What solutions have you tried so far? Using Youtube or use references other models from Toolbox, but none have worked.
Script:
script.Parent.ClickDetector.MouseClick:Connect(function(plr)
if plr.PlayerGui:FindFirstChild("AnswerGui") then
else
local clone = script.Parent.AnswerGui:Clone()
clone.Parent = plr.PlayerGui
clone.Frame.Enter.MouseButton1Click:Connect(function()
if clone.Frame.TextBox.Text == clone.Answer.Value then
clone.Frame.TextBox.TextStrokeColor3 = Color3.new(0,255,0)
clone.Frame.TextBox.Text = "CORRECT"
wait(.5)
clone:Destroy()
else
clone.Frame.TextBox.Text = "INCORRECT"
clone.Frame.TextBox.TextStrokeColor3 = Color3.new(255,0,0)
wait(.5)
clone.Frame.TextBox.Text = ""
clone.Frame.TextBox.TextStrokeColor3 = Color3.new(0,0,0)
end
end)
end
end)
In this clip, I set the answer as “Hi”
https://i.gyazo.com/7bee935931bf4423281cab2900bcd812.gif
Picture of the entire thing