Advertisement
scriptingtales

Kick button

Mar 26th, 2021
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3.2
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local TextButton = Instance.new("TextButton")
  8.  
  9. --Properties:
  10.  
  11. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  12. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  13.  
  14. TextButton.Parent = ScreenGui
  15. TextButton.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  16. TextButton.Position = UDim2.new(0.348293483, 0, 0.685881555, 0)
  17. TextButton.Size = UDim2.new(0, 200, 0, 50)
  18. TextButton.Font = Enum.Font.SourceSans
  19. TextButton.Text = "Kick"
  20. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  21. TextButton.TextScaled = true
  22. TextButton.TextSize = 14.000
  23. TextButton.TextWrapped = true
  24.  
  25. -- Scripts:
  26.  
  27. local function IWHQXWB_fake_script() -- TextButton.LocalScript
  28. local script = Instance.new('LocalScript', TextButton)
  29.  
  30. script.Parent.MouseButton1Down:Connect(function()
  31. game.Players.LocalPlayer:Kick("Test")
  32. end)
  33. end
  34. coroutine.wrap(IWHQXWB_fake_script)()
  35.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement