Advertisement
scriptingtales

Kick test (

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