Advertisement
Joriangames

Clienthandler

May 14th, 2022
1,389
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.14 KB | None | 0 0
  1. --[[
  2. Thanks for using this script
  3. This script was made by Joriangames/BloxianCode
  4. Want to know how to use this and script explanation?
  5. Check the video here: https://youtu.be/o80VXacZP9o
  6. ]]
  7. local SubmitBtn = script.Parent.Submit
  8. local FeedbackRmt = game.ReplicatedStorage:WaitForChild("FeedbackRmt")
  9. local InputBox = script.Parent.InputBox
  10.  
  11. local Cooldown = script.Parent.Cooldown
  12.  
  13.  
  14.  
  15. SubmitBtn.MouseButton1Click:Connect(function()
  16.     if Cooldown.Value ~= 0 then
  17.        
  18.         InputBox.Text = "Cooldown isn't over yet, wait "..Cooldown.Value.." more seconds!"
  19.         wait(1)
  20.         InputBox.Text = ""
  21.        
  22.     elseif InputBox.Text ~= "" or InputBox.Text ~= "Leave your feedback here" then
  23.                
  24.  
  25.         local Hour = os.date("*t")["hour"]
  26.         local Minute = os.date("*t")["min"]
  27.         local Seconds = os.date("*t")["sec"]
  28.  
  29.                
  30.         local FinalTime = Hour..":"..Minute..":"..Seconds
  31.                
  32.         local Feedback = InputBox.Text
  33.  
  34.         FeedbackRmt:FireServer(Feedback, FinalTime)
  35.        
  36.         Cooldown.Value = 60
  37.                
  38.     end
  39.  
  40.    
  41. end)
  42.  
  43. FeedbackRmt.OnClientEvent:Connect(function(message)
  44.     InputBox.Text = "Feedback received. Thanks for your support!"
  45.     wait(1)
  46.     InputBox.Text = ""
  47. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement