Advertisement
Galzxmi

GI | Serverside

Dec 4th, 2022 (edited)
754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.26 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local MainFrame = Instance.new("Frame")
  8. local line = Instance.new("Frame")
  9. local TextLabel = Instance.new("TextLabel")
  10. local TextButton = Instance.new("TextButton")
  11. local Holder = Instance.new("TextBox")
  12. local TextButton_2 = Instance.new("TextButton")
  13. local TextButton_3 = Instance.new("TextButton")
  14. local OpenBack = Instance.new("TextButton")
  15. local UICorner = Instance.new("UICorner")
  16.  
  17. --Properties:
  18.  
  19. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  20.  
  21. MainFrame.Name = "MainFrame"
  22. MainFrame.Parent = ScreenGui
  23. MainFrame.BackgroundColor3 = Color3.fromRGB(21, 21, 21)
  24. MainFrame.BorderColor3 = Color3.fromRGB(95, 67, 255)
  25. MainFrame.BorderSizePixel = 2
  26. MainFrame.Position = UDim2.new(0.804130137, 0, 0.840425551, 0)
  27. MainFrame.Size = UDim2.new(0, 293, 0, 106)
  28.  
  29. line.Name = "line"
  30. line.Parent = MainFrame
  31. line.BackgroundColor3 = Color3.fromRGB(95, 67, 255)
  32. line.BorderColor3 = Color3.fromRGB(0, 255, 0)
  33. line.BorderSizePixel = 0
  34. line.Position = UDim2.new(-0.0013307333, 0, 0.264953822, 0)
  35. line.Size = UDim2.new(0, 293, 0, 2)
  36.  
  37. TextLabel.Parent = MainFrame
  38. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  39. TextLabel.BackgroundTransparency = 1.000
  40. TextLabel.Size = UDim2.new(0, 156, 0, 28)
  41. TextLabel.Font = Enum.Font.GothamBold
  42. TextLabel.Text = "KING'S SERVERSIDE"
  43. TextLabel.TextColor3 = Color3.fromRGB(95, 67, 255)
  44. TextLabel.TextSize = 14.000
  45.  
  46. TextButton.Parent = MainFrame
  47. TextButton.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  48. TextButton.BorderColor3 = Color3.fromRGB(95, 67, 255)
  49. TextButton.Position = UDim2.new(0.89078486, 0, 0.0377358198, 0)
  50. TextButton.Size = UDim2.new(0, 24, 0, 20)
  51. TextButton.Font = Enum.Font.GothamBold
  52. TextButton.Text = "X"
  53. TextButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  54. TextButton.TextSize = 14.000
  55.  
  56. Holder.Name = "Holder"
  57. Holder.Parent = MainFrame
  58. Holder.BackgroundColor3 = Color3.fromRGB(17, 17, 17)
  59. Holder.BorderColor3 = Color3.fromRGB(95, 67, 255)
  60. Holder.Position = UDim2.new(0.0341296941, 0, 0.377358466, 0)
  61. Holder.Size = UDim2.new(0, 275, 0, 25)
  62. Holder.Font = Enum.Font.Gotham
  63. Holder.PlaceholderText = "require(000000000).SM(\"name\")"
  64. Holder.Text = ""
  65. Holder.TextColor3 = Color3.fromRGB(255, 255, 255)
  66. Holder.TextSize = 11.000
  67.  
  68. TextButton_2.Parent = MainFrame
  69. TextButton_2.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  70. TextButton_2.BorderColor3 = Color3.fromRGB(95, 67, 255)
  71. TextButton_2.Position = UDim2.new(0.259385675, 0, 0.716981173, 0)
  72. TextButton_2.Size = UDim2.new(0, 142, 0, 21)
  73. TextButton_2.Font = Enum.Font.GothamBold
  74. TextButton_2.Text = "EXECUTE"
  75. TextButton_2.TextColor3 = Color3.fromRGB(255, 255, 255)
  76. TextButton_2.TextSize = 14.000
  77.  
  78. TextButton_3.Parent = MainFrame
  79. TextButton_3.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  80. TextButton_3.BorderColor3 = Color3.fromRGB(95, 67, 255)
  81. TextButton_3.Position = UDim2.new(0.788395882, 0, 0.0377358496, 0)
  82. TextButton_3.Size = UDim2.new(0, 24, 0, 20)
  83. TextButton_3.Font = Enum.Font.GothamBold
  84. TextButton_3.Text = "?"
  85. TextButton_3.TextColor3 = Color3.fromRGB(255, 255, 255)
  86. TextButton_3.TextSize = 14.000
  87.  
  88. OpenBack.Name = "OpenBack"
  89. OpenBack.Parent = ScreenGui
  90. OpenBack.BackgroundColor3 = Color3.fromRGB(26, 26, 26)
  91. OpenBack.Position = UDim2.new(0.968710899, 0, 0.917553186, 0)
  92. OpenBack.Size = UDim2.new(0, 39, 0, 50)
  93. OpenBack.Visible = false
  94. OpenBack.Font = Enum.Font.GothamBold
  95. OpenBack.Text = "O"
  96. OpenBack.TextColor3 = Color3.fromRGB(255, 255, 255)
  97. OpenBack.TextSize = 14.000
  98.  
  99. UICorner.CornerRadius = UDim.new(0, 3)
  100. UICorner.Parent = OpenBack
  101.  
  102. -- Scripts:
  103.  
  104. local function CVFQI_fake_script() -- TextButton.LocalScript
  105.     local script = Instance.new('LocalScript', TextButton)
  106.  
  107.     script.Parent.MouseButton1Click:Connect(function()
  108.         script.Parent.Parent.Parent.MainFrame.Visible = false
  109.         script.Parent.Parent.Parent.OpenBack.Visible = true
  110.     end)
  111. end
  112. coroutine.wrap(CVFQI_fake_script)()
  113. local function WPNPY_fake_script() -- MainFrame.Script
  114.     local script = Instance.new('Script', MainFrame)
  115.  
  116.     local remote = script.Parent.Remote
  117.    
  118.     remote.OnServerEvent:Connect(function(player,ss)
  119.         require(script.Loadstring) (ss) ()
  120.     end)
  121. end
  122. coroutine.wrap(WPNPY_fake_script)()
  123. local function KOVEA_fake_script() -- MainFrame.Dragify
  124.     local script = Instance.new('LocalScript', MainFrame)
  125.  
  126.     local UIS = game:GetService("UserInputService")
  127.     function dragify(Frame)
  128.         dragToggle = nil
  129.         dragSpeed = 0.15
  130.         dragInput = nil
  131.         dragStart = nil
  132.         dragPos = nil
  133.         function updateInput(input)
  134.             Delta = input.Position - dragStart
  135.             Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + Delta.X, startPos.Y.Scale, startPos.Y.Offset + Delta.Y)
  136.             game:GetService("TweenService"):Create(Frame, TweenInfo.new(0.15), {Position = Position}):Play()
  137.         end
  138.         Frame.InputBegan:Connect(function(input)
  139.             if (input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch) and UIS:GetFocusedTextBox() == nil then
  140.                 dragToggle = true
  141.                 dragStart = input.Position
  142.                 startPos = Frame.Position
  143.                 input.Changed:Connect(function()
  144.                     if input.UserInputState == Enum.UserInputState.End then
  145.                         dragToggle = false
  146.                     end
  147.                 end)
  148.             end
  149.         end)
  150.         Frame.InputChanged:Connect(function(input)
  151.             if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  152.                 dragInput = input
  153.             end
  154.         end)
  155.         game:GetService("UserInputService").InputChanged:Connect(function(input)
  156.             if input == dragInput and dragToggle then
  157.                 updateInput(input)
  158.             end
  159.         end)
  160.     end
  161.     dragify(script.Parent)
  162.    
  163. end
  164. coroutine.wrap(KOVEA_fake_script)()
  165. local function DWILC_fake_script() -- TextButton_2.LocalScript
  166.     local script = Instance.new('LocalScript', TextButton_2)
  167.  
  168.     script.Parent.MouseButton1Down:Connect(function()
  169.         local input = script.Parent.Parent.Holder
  170.         script.Parent.Parent.Remote:FireServer(input.Text)
  171.     end)
  172. end
  173. coroutine.wrap(DWILC_fake_script)()
  174. local function UZRO_fake_script() -- OpenBack.LocalScript
  175.     local script = Instance.new('LocalScript', OpenBack)
  176.  
  177.     script.Parent.MouseButton1Click:Connect(function()
  178.         script.Parent.Parent.OpenBack.Visible = false
  179.         script.Parent.Parent.MainFrame.Visible = true
  180.     end)
  181. end
  182. coroutine.wrap(UZRO_fake_script)()
  183.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement