Advertisement
Guest User

kick gui test

a guest
Jan 25th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.13 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextLabel = Instance.new("TextLabel")
  6. local t = Instance.new("TextBox")
  7. local r = Instance.new("TextBox")
  8. local TextButton = Instance.new("TextButton")
  9.  
  10. -- Properties
  11.  
  12. ScreenGui.Parent = game.StarterGui
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. Frame.Parent = ScreenGui
  16. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  17. Frame.Position = UDim2.new(0.0705394223, 0, 0.466386557, 0)
  18. Frame.Size = UDim2.new(0, 389, 0, 182)
  19. Frame.Style = Enum.FrameStyle.DropShadow
  20.  
  21. TextLabel.Parent = Frame
  22. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  23. TextLabel.BackgroundTransparency = 1
  24. TextLabel.Position = UDim2.new(0.221079692, 0, 0.0109890113, 0)
  25. TextLabel.Size = UDim2.new(0, 200, 0, 50)
  26. TextLabel.Font = Enum.Font.SourceSans
  27. TextLabel.Text = "kick gui for skids"
  28. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  29. TextLabel.TextScaled = true
  30. TextLabel.TextSize = 14
  31. TextLabel.TextWrapped = true
  32.  
  33. t.Name = "t"
  34. t.Parent = Frame
  35. t.BackgroundColor3 = Color3.new(1, 1, 1)
  36. t.Position = UDim2.new(0.219804242, 0, 0.313126445, 0)
  37. t.Size = UDim2.new(0, 200, 0, 24)
  38. t.Font = Enum.Font.SourceSans
  39. t.Text = "target"
  40. t.TextColor3 = Color3.new(0, 0, 0)
  41. t.TextScaled = true
  42. t.TextSize = 14
  43. t.TextWrapped = true
  44.  
  45. r.Name = "r"
  46. r.Parent = Frame
  47. r.BackgroundColor3 = Color3.new(1, 1, 1)
  48. r.Position = UDim2.new(0.219804242, 0, 0.549390197, 0)
  49. r.Size = UDim2.new(0, 200, 0, 24)
  50. r.Font = Enum.Font.SourceSans
  51. r.Text = "reason"
  52. r.TextColor3 = Color3.new(0, 0, 0)
  53. r.TextScaled = true
  54. r.TextSize = 14
  55. r.TextWrapped = true
  56.  
  57. TextButton.Parent = Frame
  58. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  59. TextButton.Position = UDim2.new(0.187482193, 0, 0.78047061, 0)
  60. TextButton.Size = UDim2.new(0, 231, 0, 16)
  61. TextButton.Font = Enum.Font.SourceSans
  62. TextButton.Text = "kick"
  63. TextButton.TextColor3 = Color3.new(0, 0, 0)
  64. TextButton.TextScaled = true
  65. TextButton.TextSize = 14
  66. TextButton.TextWrapped = true
  67. TextButton.MouseButton1Down:connect(function()
  68. local plr = game.Players:WaitForChild(t.Text)
  69. local rsn = r.Text
  70. if plr then
  71. plr:Kick(rsn)
  72. end
  73. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement