Kenken_I

Untitled

Apr 26th, 2025
9,462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.48 KB | None | 0 0
  1. -- Made BY Mr.Alegator
  2.  
  3. local screenGui = Instance.new("ScreenGui")
  4. screenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  5.  
  6. local frame = Instance.new("Frame")
  7. frame.Size = UDim2.new(0, 200, 0, 100)
  8. frame.Position = UDim2.new(0.5, -100, 0.5, -50)
  9. frame.BackgroundColor3 = Color3.new(1, 1, 1)
  10. frame.Parent = screenGui
  11.  
  12. local title = Instance.new("TextLabel")
  13. title.Size = UDim2.new(1, 0, 0, 20)
  14. title.Position = UDim2.new(0, 0, 0, -20)
  15. title.Text = "Universal Key System Script"
  16. title.TextColor3 = Color3.new(1, 1, 1)
  17. title.BackgroundColor3 = Color3.new(0, 0, 0)
  18. title.Parent = frame
  19.  
  20. local dragging
  21. local dragInput
  22. local dragStart
  23. local startPos
  24.  
  25. local function update(input)
  26. local delta = input.Position - dragStart
  27. frame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  28. end
  29.  
  30. title.InputBegan:Connect(function(input)
  31. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  32. dragging = true
  33. dragStart = input.Position
  34. startPos = frame.Position
  35.  
  36. input.Changed:Connect(function()
  37. if input.UserInputState == Enum.UserInputState.End then
  38. dragging = false
  39. end
  40. end)
  41. end
  42. end)
  43.  
  44. title.InputChanged:Connect(function(input)
  45. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  46. dragInput = input
  47. end
  48. end)
  49.  
  50. title.InputEnded:Connect(function(input)
  51. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  52. dragging = false
  53. dragInput = nil
  54. end
  55. end)
  56.  
  57. game:GetService("UserInputService").InputChanged:Connect(function(input)
  58. if input == dragInput and dragging then
  59. update(input)
  60. end
  61. end)
  62.  
  63. local KeySystem = Instance.new("TextBox")
  64. KeySystem.Size = UDim2.new(1, 0, 0.5, 0)
  65. KeySystem.Position = UDim2.new(0, 0, 0, 0)
  66. KeySystem.Text = "Enter the Key"
  67. KeySystem.TextColor3 = Color3.new(0, 0, 0)
  68. KeySystem.BackgroundTransparency = 0.5
  69. KeySystem.BackgroundColor3 = Color3.new(1, 1, 1)
  70. KeySystem.TextWrapped = true
  71. KeySystem.Parent = frame
  72.  
  73. local SubmitButton = Instance.new("TextButton")
  74. SubmitButton.Size = UDim2.new(0.5, 0, 0.5, 0)
  75. SubmitButton.Position = UDim2.new(0, 0, 0.5, 0)
  76. SubmitButton.Text = "Submit"
  77. SubmitButton.Parent = frame
  78.  
  79. local CloseButton = Instance.new("TextButton")
  80. CloseButton.Size = UDim2.new(0, 20, 0, 20)
  81. CloseButton.Position = UDim2.new(1, -20, 0, 0)
  82. CloseButton.Text = "X"
  83. CloseButton.TextColor3 = Color3.new(1, 1, 1)
  84. CloseButton.BackgroundColor3 = Color3.new(1, 0, 0)
  85. CloseButton.Parent = frame
  86.  
  87. CloseButton.MouseButton1Click:Connect(function()
  88. screenGui:Destroy()
  89. end)
  90.  
  91. local GetKeyButton = Instance.new("TextButton")
  92. GetKeyButton.Size = UDim2.new(0.5, 0, 0.5, 0)
  93. GetKeyButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  94. GetKeyButton.Text = "Get Key"
  95. GetKeyButton.Parent = frame
  96. --------------------------------------------------------------------------
  97. SubmitButton.MouseButton1Click:Connect(function()
  98. local KeySystem = KeySystem.Text
  99. if KeySystem == "!$&/&181828182" then
  100. screenGui:Destroy()
  101.  
  102. loadstring(game:HttpGet("https://raw.githubusercontent.com/Gregy677/STFO-Script/main/README.lua",true))()
  103.  
  104. end
  105. end)
  106.  
  107. GetKeyButton.MouseButton1Click:Connect(function()
  108. setclipboard("https://direct-link.net/1201939/stfo-king")
  109. end)
Add Comment
Please, Sign In to add comment