Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local hintAnswer = ReplicatedStorage.HintAnswer
- local submitAnswer = ReplicatedStorage.SubmittedAnswer
- local function answerQuestion()
- local correctAnswer = hintAnswer.Value
- local answerLength = #correctAnswer
- task.wait(math.random(20, 30) / 10 + answerLength / 5) -- 2 - 3s of "thinking", typing speed at 5 cps (average)
- submitAnswer:FireServer(correctAnswer, answerLength)
- end
- answerQuestion()
- hintAnswer:GetPropertyChangedSignal("Value"):Connect(answerQuestion)
Add Comment
Please, Sign In to add comment