scriptingtales

Kick Gui Updated (Draggable!)

Apr 30th, 2022 (edited)
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.41 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local KickGui = Instance.new("ScreenGui")
  7. local Frame = Instance.new("Frame")
  8. local Cancel = Instance.new("TextButton")
  9. local Kick = Instance.new("TextButton")
  10. local Reason = Instance.new("TextBox")
  11. local Player = Instance.new("TextBox")
  12. local Open = Instance.new("TextButton")
  13.  
  14. --Properties:
  15.  
  16. KickGui.Name = "KickGui"
  17. KickGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  18.  
  19. Frame.Parent = KickGui
  20. Frame.BackgroundColor3 = Color3.fromRGB(48, 255, 210)
  21. Frame.Position = UDim2.new(0.339047641, 0, 0.285123974, 0)
  22. Frame.Size = UDim2.new(0, 530, 0, 311)
  23. Frame.Visible = false
  24.  
  25. Cancel.Name = "Cancel"
  26. Cancel.Parent = Frame
  27. Cancel.BackgroundColor3 = Color3.fromRGB(32, 67, 255)
  28. Cancel.Position = UDim2.new(0.53396225, 0, 0.778135061, 0)
  29. Cancel.Size = UDim2.new(0, 200, 0, 50)
  30. Cancel.Font = Enum.Font.SourceSans
  31. Cancel.Text = "Cancel"
  32. Cancel.TextColor3 = Color3.fromRGB(113, 255, 19)
  33. Cancel.TextScaled = true
  34. Cancel.TextSize = 14.000
  35. Cancel.TextWrapped = true
  36.  
  37. Kick.Name = "Kick"
  38. Kick.Parent = Frame
  39. Kick.BackgroundColor3 = Color3.fromRGB(32, 67, 255)
  40. Kick.Position = UDim2.new(0.0886792243, 0, 0.778135061, 0)
  41. Kick.Size = UDim2.new(0, 200, 0, 50)
  42. Kick.Font = Enum.Font.SourceSans
  43. Kick.Text = "Kick"
  44. Kick.TextColor3 = Color3.fromRGB(113, 255, 19)
  45. Kick.TextScaled = true
  46. Kick.TextSize = 14.000
  47. Kick.TextWrapped = true
  48.  
  49. Reason.Name = "Reason"
  50. Reason.Parent = Frame
  51. Reason.BackgroundColor3 = Color3.fromRGB(196, 124, 255)
  52. Reason.Position = UDim2.new(0.179245278, 0, 0.305466235, 0)
  53. Reason.Size = UDim2.new(0, 340, 0, 133)
  54. Reason.Font = Enum.Font.SourceSans
  55. Reason.Text = "Reason"
  56. Reason.TextColor3 = Color3.fromRGB(19, 0, 255)
  57. Reason.TextSize = 23.000
  58. Reason.TextWrapped = true
  59. Reason.TextXAlignment = Enum.TextXAlignment.Left
  60. Reason.TextYAlignment = Enum.TextYAlignment.Top
  61.  
  62. Player.Name = "Player"
  63. Player.Parent = Frame
  64. Player.BackgroundColor3 = Color3.fromRGB(34, 255, 44)
  65. Player.Position = UDim2.new(0.311320752, 0, 0.0771704167, 0)
  66. Player.Size = UDim2.new(0, 200, 0, 50)
  67. Player.Font = Enum.Font.SourceSans
  68. Player.Text = "Enter Username"
  69. Player.TextColor3 = Color3.fromRGB(252, 0, 99)
  70. Player.TextSize = 19.000
  71.  
  72. Open.Name = "Open"
  73. Open.Parent = KickGui
  74. Open.BackgroundColor3 = Color3.fromRGB(55, 255, 95)
  75. Open.Position = UDim2.new(0, 0, 0.415977955, 0)
  76. Open.Size = UDim2.new(0, 200, 0, 50)
  77. Open.Font = Enum.Font.SourceSans
  78. Open.Text = "Open"
  79. Open.TextColor3 = Color3.fromRGB(255, 255, 255)
  80. Open.TextScaled = true
  81. Open.TextSize = 14.000
  82. Open.TextWrapped = true
  83.  
  84. -- Scripts:
  85.  
  86. local function QVROBDG_fake_script() -- Frame.LocalScript
  87. local script = Instance.new('LocalScript', Frame)
  88.  
  89. Frame = script.Parent
  90. Frame.Draggable = true
  91. Frame.Selectable = true
  92. Frame.Active = true
  93. end
  94. coroutine.wrap(QVROBDG_fake_script)()
  95. local function TPTBH_fake_script() -- KickGui.LocalScript
  96. local script = Instance.new('LocalScript', KickGui)
  97.  
  98. script.Parent.Open.MouseButton1Click:Connect(function()
  99. script.Parent.Frame.Visible = true
  100. script.Parent.Open.Visible = true
  101. end)
  102.  
  103. script.Parent.Frame.Cancel.MouseButton1Click:Connect(function()
  104. script.Parent.Frame.Visible = false
  105. script.Parent.Cancel.Visible = false
  106. end)
  107.  
  108. script.Parent.Frame.Kick.MouseButton1Click:Connect(function()
  109. game.Players:WaitForChild(script.Parent.Frame.Player.Text):Kick(script.Parent.Frame.Reason.Text)
  110. end)
  111. end
  112. coroutine.wrap(TPTBH_fake_script)()
  113.  
Add Comment
Please, Sign In to add comment