Advertisement
Keimu

Closest Answer Wins Script

Mar 11th, 2023
639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local function yes()
  2. local args = {
  3. [1] = game:GetService("ReplicatedStorage").HintAnswer.Value,
  4. [2] = game.Players.LocalPlayer.plrnum.Value
  5. }
  6.  
  7. game:GetService("ReplicatedStorage").SubmittedAnswer:FireServer(unpack(args))
  8. end
  9.  
  10. yes()
  11.  
  12. game:GetService("ReplicatedStorage").HintAnswer:GetPropertyChangedSignal("Value"):Connect(function()
  13. if game:GetService("ReplicatedStorage").HintAnswer.Value ~= "" then
  14. task.wait(9)
  15. yes()
  16. end
  17. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement