kob123678

Longest Answer Wins

Mar 5th, 2023
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local Player = game:GetService("Players").LocalPlayer
  2. local RepStorage = game:GetService("ReplicatedStorage")
  3.  
  4. local Submit = RepStorage.SubmittedAnswer
  5. local Answer = RepStorage.HintAnswer
  6.  
  7. while task.wait(0.5) do
  8. if Player.PlayerGui:WaitForChild("TimeLeftQuestion"):WaitForChild("AnswerBox").Visible == true then
  9. local CurrentAnswer = Answer.Value
  10. local CurrentAnswerLength = string.len(CurrentAnswer)
  11.  
  12. Player.PlayerGui:WaitForChild("TimeLeftQuestion"):WaitForChild("AnswerBox").Text = CurrentAnswer
  13. Submit:FireServer(CurrentAnswer, CurrentAnswerLength)
  14. end
  15. end
Add Comment
Please, Sign In to add comment