Advertisement
jakeisfunny101

Main

Aug 28th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. local Start = script.Parent.StartFrame
  2. local NextStart = script.Parent.NextStart
  3. local Application = script.Parent.Application
  4. local Loading = script.Parent.Loading
  5. local Data = { }
  6. local remote = game:GetService("ReplicatedStorage").Application
  7. local plr = game:GetService("Players").LocalPlayer
  8.  
  9. Start.NamePlayer.Text = "Welcome, "..plr.Name
  10.  
  11. function FadeIn(Frame)
  12. Frame.Visible = true
  13. for i = 1,0,-0.05 do
  14. Frame.Transparency = i
  15. wait(0.05)
  16. end
  17. end
  18.  
  19. function FadeOut(Frame)
  20. for i = 0,1,0.05 do
  21. Frame.Transeparancy = i
  22. wait(0.05)
  23. end
  24. Frame.Visible = false
  25. end
  26.  
  27.  
  28. Start.Start.MouseButton1Click:connect(function()
  29. FadeIn(NextStart)
  30. FadeOut(Start)
  31. end)
  32.  
  33. NextStart.R1.MouseButton1Click:connect(function()
  34. table.insert(Data,1,NextStart.R1.Text)
  35. FadeIn(Application)
  36. FadeOut(NextStart)
  37. end)
  38.  
  39. NextStart.R2.MouseButton1Click:connect(function()
  40. table.insert(Data,1,NextStart.R2.Text)
  41. FadeIn(Application)
  42. FadeOut(NextStart)
  43. end)
  44.  
  45. NextStart.R3.MouseButton1Click:connect(function()
  46. table.insert(Data,1,NextStart.R3.Text)
  47. FadeIn(Application)
  48. FadeOut(NextStart)
  49. end)
  50.  
  51. local Debounce = false
  52.  
  53. Application.Application.Send.MouseButton1Click:connect(function()
  54. for i,v in pairs(Application.Application:GetChildren()) do
  55. if v:IsA("TextBox") then
  56. if v.Text == "" or v.Text == nil then
  57. warn("The player has not entered anything for the questions.")
  58. else
  59. if not Debounce then
  60. Debounce = true
  61. table.insert(Data,2,"Q1: "..Application.Application.Q1.Text)
  62. table.insert(Data,3,"Q2: "..Application.Application.Q2.Text)
  63. table.insert(Data,4,"Q3: "..Application.Application.Q3.Text)
  64. table.insert(Data,5,"Q4: "..Application.Application.Q4.Text)
  65. table.insert(Data,6,"Q5: "..Application.Application.Q5.Text)
  66. FadeIn(Application)
  67. FadeIn(Loading)
  68. Loading.Status:TweenSize(UDim2.new(0, 699,0, 62),1,0,10)
  69. wait(10)
  70. Loading.ServerStatus.Text = "Your Application Has Been Sent, You May Leave!"
  71. remote:FireServer(Data)
  72. end
  73. end
  74. end
  75. end
  76. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement