Advertisement
CriShoux

Captcha GUI

Nov 26th, 2018
509
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1. --// Instances:
  2. local CaptchaGui = Instance.new("ScreenGui")
  3. local CaptchaMain = Instance.new("Frame")
  4. local CaptchaBtn = Instance.new("TextButton")
  5. local ColorFrame = Instance.new("Frame")
  6. local CaptchaImage = Instance.new("ImageLabel")
  7. local CaptchaLabel = Instance.new("TextLabel")
  8. local RobotLabel = Instance.new("TextLabel")
  9. local UIAspectRatioConstraint = Instance.new("UIAspectRatioConstraint")
  10. --// Properties:
  11. CaptchaGui.Name = "CaptchaGui"
  12. CaptchaGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13.  
  14. CaptchaMain.Name = "CaptchaMain"
  15. CaptchaMain.Parent = CaptchaGui
  16. CaptchaMain.AnchorPoint = Vector2.new(0.5, 0.5)
  17. CaptchaMain.BackgroundColor3 = Color3.new(1, 1, 1)
  18. CaptchaMain.BorderSizePixel = 0
  19. CaptchaMain.Position = UDim2.new(0.5, 0, 0.5, 0)
  20. CaptchaMain.Size = UDim2.new(0.300000012, 0, 0.129999995, 0)
  21.  
  22. CaptchaBtn.Name = "CaptchaBtn"
  23. CaptchaBtn.Parent = CaptchaMain
  24. CaptchaBtn.AnchorPoint = Vector2.new(0.5, 0.5)
  25. CaptchaBtn.BackgroundColor3 = Color3.new(1, 1, 1)
  26. CaptchaBtn.BorderColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  27. CaptchaBtn.BorderSizePixel = 3
  28. CaptchaBtn.Position = UDim2.new(0.131602556, 0, 0.50000006, 0)
  29. CaptchaBtn.Size = UDim2.new(0.100822195, 0, 0.285050094, 0)
  30. CaptchaBtn.AutoButtonColor = false
  31. CaptchaBtn.Font = Enum.Font.SourceSans
  32. CaptchaBtn.Text = ""
  33. CaptchaBtn.TextColor3 = Color3.new(1, 1, 1)
  34. CaptchaBtn.TextSize = 14
  35.  
  36. ColorFrame.Name = "ColorFrame"
  37. ColorFrame.Parent = CaptchaBtn
  38. ColorFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  39. ColorFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  40. ColorFrame.BorderSizePixel = 0
  41. ColorFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  42. ColorFrame.Size = UDim2.new(0.670000017, 0, 0.649999976, 0)
  43.  
  44. CaptchaImage.Name = "CaptchaImage"
  45. CaptchaImage.Parent = CaptchaMain
  46. CaptchaImage.AnchorPoint = Vector2.new(0.5, 0.5)
  47. CaptchaImage.BackgroundColor3 = Color3.new(1, 1, 1)
  48. CaptchaImage.BorderSizePixel = 0
  49. CaptchaImage.Position = UDim2.new(0.800000012, 0, 0.409999996, 0)
  50. CaptchaImage.Size = UDim2.new(0.200000003, 0, 0.600000024, 0)
  51. CaptchaImage.Image = "rbxassetid://2601989801"
  52.  
  53. CaptchaLabel.Name = "CaptchaLabel"
  54. CaptchaLabel.Parent = CaptchaMain
  55. CaptchaLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  56. CaptchaLabel.BackgroundTransparency = 1
  57. CaptchaLabel.BorderSizePixel = 0
  58. CaptchaLabel.Position = UDim2.new(0.649999976, 0, 0.730000019, 0)
  59. CaptchaLabel.Size = UDim2.new(0.300000012, 0, 0.200000003, 0)
  60. CaptchaLabel.Font = Enum.Font.ArialBold
  61. CaptchaLabel.Text = "reCAPTCHA"
  62. CaptchaLabel.TextColor3 = Color3.new(0.705882, 0.705882, 0.705882)
  63. CaptchaLabel.TextScaled = true
  64. CaptchaLabel.TextSize = 14
  65. CaptchaLabel.TextWrapped = true
  66.  
  67. RobotLabel.Name = "RobotLabel"
  68. RobotLabel.Parent = CaptchaMain
  69. RobotLabel.AnchorPoint = Vector2.new(0.5, 0.5)
  70. RobotLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  71. RobotLabel.BackgroundTransparency = 1
  72. RobotLabel.BorderSizePixel = 0
  73. RobotLabel.Position = UDim2.new(0.412999988, 0, 0.5, 0)
  74. RobotLabel.Size = UDim2.new(0.400000006, 0, 0.300000012, 0)
  75. RobotLabel.Font = Enum.Font.SourceSans
  76. RobotLabel.Text = "I'm not a robot"
  77. RobotLabel.TextColor3 = Color3.new(0, 0, 0)
  78. RobotLabel.TextScaled = true
  79. RobotLabel.TextSize = 14
  80. RobotLabel.TextWrapped = true
  81.  
  82. UIAspectRatioConstraint.Parent = CaptchaMain
  83. UIAspectRatioConstraint.AspectRatio = 2.9484028816223
  84. --// Scripts
  85. local info = TweenInfo.new(
  86. 1,
  87. Enum.EasingStyle.Quint,
  88. Enum.EasingDirection.Out
  89. )
  90.  
  91. local properties = {
  92. BackgroundColor3 = Color3.fromRGB(0, 237, 0)
  93. }
  94.  
  95. local tween = game:GetService("TweenService"):Create(ColorFrame, info, properties)
  96.  
  97. CaptchaBtn.MouseButton1Down:Connect(function()
  98. tween:Play()
  99. wait(1)
  100. for i = 1, 10 do
  101. wait()
  102. CaptchaMain.BackgroundTransparency = CaptchaMain.BackgroundTransparency + 0.1
  103. CaptchaBtn.BackgroundTransparency = CaptchaBtn.BackgroundTransparency + 0.1
  104. CaptchaLabel.BackgroundTransparency = CaptchaLabel.BackgroundTransparency + 0.1
  105. CaptchaImage.ImageTransparency = CaptchaImage.ImageTransparency + 0.1
  106. CaptchaImage.BackgroundTransparency = CaptchaImage.BackgroundTransparency + 0.1
  107. RobotLabel.BackgroundTransparency = RobotLabel.BackgroundTransparency + 0.1
  108. RobotLabel.TextTransparency = RobotLabel.TextTransparency + 0.1
  109. CaptchaLabel.TextTransparency = CaptchaLabel.TextTransparency + 0.1
  110. ColorFrame.BackgroundTransparency = ColorFrame.BackgroundTransparency + 0.1
  111. end
  112. wait(1.3)
  113. CaptchaGui:Destroy()
  114. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement