Guest User

Kick GUI for Roblox

a guest
Aug 24th, 2019
17,210
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local KickGui = Instance.new("ScreenGui")
  5. local GuiToggle = Instance.new("TextButton")
  6. local Frame = Instance.new("Frame")
  7. local Player = Instance.new("TextBox")
  8. local Kick = Instance.new("TextButton")
  9. local Cancel = Instance.new("TextButton")
  10. local Reason = Instance.new("TextBox")
  11. --Properties:
  12. KickGui.Name = "KickGui"
  13. KickGui.Parent = game.ServerScriptService.KickHandler
  14. KickGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15. KickGui.ResetOnSpawn = false
  16.  
  17. GuiToggle.Name = "GuiToggle"
  18. GuiToggle.Parent = KickGui
  19. GuiToggle.BackgroundColor3 = Color3.new(0, 0, 0)
  20. GuiToggle.BackgroundTransparency = 0.20000000298023
  21. GuiToggle.BorderSizePixel = 0
  22. GuiToggle.Position = UDim2.new(0.00616903137, 0, 0.903864682, 0)
  23. GuiToggle.Size = UDim2.new(0.0876619443, 0, 0.0782608688, 0)
  24. GuiToggle.Font = Enum.Font.Cartoon
  25. GuiToggle.Text = "Kick Player"
  26. GuiToggle.TextColor3 = Color3.new(1, 1, 1)
  27. GuiToggle.TextScaled = true
  28. GuiToggle.TextSize = 25
  29. GuiToggle.TextWrapped = true
  30.  
  31. Frame.Parent = KickGui
  32. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  33. Frame.BackgroundTransparency = 0.20000000298023
  34. Frame.BorderSizePixel = 0
  35. Frame.Position = UDim2.new(0.400000006, 0, 0.349999994, 0)
  36. Frame.Size = UDim2.new(0.200000003, 0, 0.300000012, 0)
  37. Frame.Visible = false
  38.  
  39. Player.Name = "Player"
  40. Player.Parent = Frame
  41. Player.BackgroundColor3 = Color3.new(1, 1, 1)
  42. Player.BackgroundTransparency = 0.10000000149012
  43. Player.BorderSizePixel = 0
  44. Player.Position = UDim2.new(0.0500000641, 0, 0.059661787, 0)
  45. Player.Size = UDim2.new(0.899999976, 0, 0.158454224, 0)
  46. Player.Font = Enum.Font.SourceSansBold
  47. Player.PlaceholderColor3 = Color3.new(0, 0, 0)
  48. Player.PlaceholderText = "Player Name"
  49. Player.Text = ""
  50. Player.TextColor3 = Color3.new(0, 0, 0)
  51. Player.TextSize = 30
  52. Player.TextWrapped = true
  53.  
  54. Kick.Name = "Kick"
  55. Kick.Parent = Frame
  56. Kick.BackgroundColor3 = Color3.new(1, 1, 1)
  57. Kick.BackgroundTransparency = 0.10000000149012
  58. Kick.BorderSizePixel = 0
  59. Kick.Position = UDim2.new(0.049352251, 0, 0.63285023, 0)
  60. Kick.Size = UDim2.new(0.302590966, 0, 0.300000012, 0)
  61. Kick.Font = Enum.Font.SourceSans
  62. Kick.Text = "Kick"
  63. Kick.TextColor3 = Color3.new(0, 0, 0)
  64. Kick.TextSize = 25
  65. Kick.TextWrapped = true
  66.  
  67. Cancel.Name = "Cancel"
  68. Cancel.Parent = Frame
  69. Cancel.BackgroundColor3 = Color3.new(1, 1, 1)
  70. Cancel.BackgroundTransparency = 0.10000000149012
  71. Cancel.BorderSizePixel = 0
  72. Cancel.Position = UDim2.new(0.644663751, 0, 0.63285023, 0)
  73. Cancel.Size = UDim2.new(0.302590966, 0, 0.300000012, 0)
  74. Cancel.Font = Enum.Font.SourceSans
  75. Cancel.Text = "Cancel"
  76. Cancel.TextColor3 = Color3.new(0, 0, 0)
  77. Cancel.TextSize = 25
  78. Cancel.TextWrapped = true
  79.  
  80. Reason.Name = "Reason"
  81. Reason.Parent = Frame
  82. Reason.BackgroundColor3 = Color3.new(1, 1, 1)
  83. Reason.BackgroundTransparency = 0.10000000149012
  84. Reason.BorderSizePixel = 0
  85. Reason.Position = UDim2.new(0.0500000641, 0, 0.248067647, 0)
  86. Reason.Size = UDim2.new(0.899999976, 0, 0.361352742, 0)
  87. Reason.Font = Enum.Font.SourceSansBold
  88. Reason.PlaceholderColor3 = Color3.new(0, 0, 0)
  89. Reason.PlaceholderText = "Reason"
  90. Reason.Text = ""
  91. Reason.TextColor3 = Color3.new(0, 0, 0)
  92. Reason.TextSize = 30
  93. Reason.TextWrapped = true
  94. -- Scripts:
  95. function SCRIPT_YUCB77_FAKESCRIPT() -- KickGui.LocalScript
  96. local script = Instance.new('LocalScript')
  97. script.Parent = KickGui
  98. local frame = script.Parent.Frame
  99.  
  100. script.Parent.GuiToggle.MouseButton1Click:connect(function()
  101. if frame.Visible == true then
  102. frame.Visible = false
  103. else
  104. frame.Visible = true
  105. end
  106. end)
  107.  
  108.  
  109. frame.Cancel.MouseButton1Click:connect(function()
  110. frame.Visible = false
  111. end)
  112.  
  113. frame.Kick.MouseButton1Click:connect(function()
  114. if game.Players:FindFirstChild(frame.Player.Text) then
  115. game.ReplicatedStorage.KickPlayer:FireServer(frame.Player.Text, frame.Reason.Text)
  116. end
  117. end)
  118.  
  119. end
  120. coroutine.resume(coroutine.create(SCRIPT_YUCB77_FAKESCRIPT))
RAW Paste Data