Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Thanks for using this script
- This script was made by Joriangames/BloxianCode
- Want to know how to use this and script explanation?
- Check the video here: https://youtu.be/o80VXacZP9o
- ]]
- local SubmitBtn = script.Parent.Submit
- local FeedbackRmt = game.ReplicatedStorage:WaitForChild("FeedbackRmt")
- local InputBox = script.Parent.InputBox
- local Cooldown = script.Parent.Cooldown
- SubmitBtn.MouseButton1Click:Connect(function()
- if Cooldown.Value ~= 0 then
- InputBox.Text = "Cooldown isn't over yet, wait "..Cooldown.Value.." more seconds!"
- wait(1)
- InputBox.Text = ""
- elseif InputBox.Text ~= "" or InputBox.Text ~= "Leave your feedback here" then
- local Hour = os.date("*t")["hour"]
- local Minute = os.date("*t")["min"]
- local Seconds = os.date("*t")["sec"]
- local FinalTime = Hour..":"..Minute..":"..Seconds
- local Feedback = InputBox.Text
- FeedbackRmt:FireServer(Feedback, FinalTime)
- Cooldown.Value = 60
- end
- end)
- FeedbackRmt.OnClientEvent:Connect(function(message)
- InputBox.Text = "Feedback received. Thanks for your support!"
- wait(1)
- InputBox.Text = ""
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement