AugusTH

Basic Script Key System (2024)

Oct 31st, 2023 (edited)
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.35 KB | None | 0 0
  1. --Skidder?
  2.  
  3. local screenGui = Instance.new("ScreenGui")
  4. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5. screenGui.ResetOnSpawn = false
  6.  
  7. local frame = Instance.new("Frame")
  8. frame.Size = UDim2.new(0, 1, 0, 1)
  9. frame.Position = UDim2.new(0.5, -100, 0.5, -50)
  10. frame.BackgroundColor3 = Color3.new(1, 1, 1)
  11. frame.Parent = screenGui
  12.  
  13. local w = Instance.new("ImageLabel")
  14. w.Size = UDim2.new(0, 165, 0, 120)
  15. w.Position = UDim2.new(0, 0, 0.9, -20)
  16. w.Image = "rbxthumb://type=Asset&id=6038460241&w=150&h=150"
  17. w.BackgroundColor3 = Color3.new(0, 0, 0)
  18. w.Parent = frame
  19.  
  20. local title = Instance.new("TextLabel")
  21. title.Size = UDim2.new(0.9, 0, 0, 20)
  22. title.Position = UDim2.new(0, 0, 0, -18.9)
  23. title.Text = "Key System - Basic Script"
  24. title.TextColor3 = Color3.new(1, 1, 1)
  25. title.BackgroundColor3 = Color3.new(0, 0, 0)
  26. title.Parent = w
  27.  
  28. local dragging
  29. local dragInput
  30. local dragStart
  31. local startPos
  32.  
  33. local function update(input)
  34. local delta = input.Position - dragStart
  35. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  36. end
  37.  
  38. title.InputBegan:Connect(function(input)
  39. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  40. dragging = true
  41. dragStart = input.Position
  42. startPos = frame.Position
  43.  
  44. input.Changed:Connect(function()
  45. if input.UserInputState == Enum.UserInputState.End then
  46. dragging = false
  47. end
  48. end)
  49. end
  50. end)
  51.  
  52. title.InputChanged:Connect(function(input)
  53. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  54. dragInput = input
  55. end
  56. end)
  57.  
  58. title.InputEnded:Connect(function(input)
  59. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  60. dragging = false
  61. dragInput = nil
  62. end
  63. end)
  64.  
  65. game:GetService("UserInputService").InputChanged:Connect(function(input)
  66. if input == dragInput and dragging then
  67. update(input)
  68. end
  69. end)
  70.  
  71. local KeySystem = Instance.new("TextBox")
  72. KeySystem.Size = UDim2.new(0.5, 0, 0.2, 0)
  73. KeySystem.Position = UDim2.new(0.25, 0, 0.8, 0)
  74. KeySystem.Text = "Enter the Key"
  75. KeySystem.TextColor3 = Color3.new(0, 0, 0)
  76. KeySystem.BackgroundTransparency = 0
  77. KeySystem.BackgroundColor3 = Color3.new(1, 1, 1)
  78. KeySystem.TextWrapped = true
  79. KeySystem.Parent = w
  80.  
  81. local SubmitButton = Instance.new("TextButton")
  82. SubmitButton.Size = UDim2.new(0.25, 0, 0.2, 0)
  83. SubmitButton.Position = UDim2.new(0, 0, 0.8, 0)
  84. SubmitButton.BackgroundColor3 = Color3.new(0, 0, 0)
  85. SubmitButton.Text = "Submit"
  86. SubmitButton.TextColor3 = Color3.new(1, 1, 1)
  87. SubmitButton.Parent = w
  88.  
  89. local CloseButton = Instance.new("TextButton")
  90. CloseButton.Size = UDim2.new(0, 20, 0, 20)
  91. CloseButton.Position = UDim2.new(0.879, 0, -0.15, 0)
  92. CloseButton.Text = "Х"
  93. CloseButton.TextColor3 = Color3.new(1, 1, 1)
  94. CloseButton.BackgroundColor3 = Color3.new(1, 0, 0)
  95. CloseButton.Parent = w
  96.  
  97. CloseButton.MouseButton1Click:Connect(function()
  98. screenGui:Destroy()
  99. end)
  100.  
  101. local GetKeyButton = Instance.new("TextButton")
  102. GetKeyButton.Size = UDim2.new(0.25, 0, 0.2, 0)
  103. GetKeyButton.Position = UDim2.new(0.75, 0, 0.8, 0)
  104. GetKeyButton.BackgroundColor3 = Color3.new(0, 0, 0)
  105. GetKeyButton.Text = "Get Key"
  106. GetKeyButton.TextColor3 = Color3.new(1, 1, 1)
  107. GetKeyButton.Parent = w
  108. --------------------------------------------------------------------------
  109. SubmitButton.MouseButton1Click:Connect(function()
  110. local KeySystem = KeySystem.Text
  111. if KeySystem == "Input" then
  112. screenGui:Destroy()
  113.  
  114. game.StarterGui:SetCore("SendNotification", {
  115. Title = "Correct Key";
  116. Text = "Script Are Loading...";
  117. Icon = "";
  118. Duration = "0.5";
  119. })
  120. --put your script
  121. loadstring(game:HttpGet("https://raw.githubusercontent.com/AugusZaa/BasicScript/main/V3.2"))()
  122. --Basic Script V2 (Upgrade) by Augus_X
  123.  
  124. end
  125. end)
  126.  
  127. GetKeyButton.MouseButton1Click:Connect(function()
  128. setclipboard("https://discord.gg/VCxAwE7EuX")
  129.  
  130. game.StarterGui:SetCore("SendNotification", {
  131. Title = "Discord Link Copy!",
  132. Text = "https://discord.gg/VCxAwE7EuX",
  133. Icon = "rbxthumb://type=Asset&id=6285941550&w=150&h=150",
  134. Duration = math.huge,
  135. Button1 = "Okay"
  136. })
  137. end)
Advertisement
Add Comment
Please, Sign In to add comment