Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.11 KB | None | 0 0
  1. -- Gui to Lua
  2. -- Version: 3
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local TextBox = Instance.new("TextBox")
  8. local TextButton = Instance.new("TextButton")
  9.  
  10. --Properties:
  11.  
  12. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  14.  
  15. TextBox.Parent = ScreenGui
  16. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  17. TextBox.Position = UDim2.new(0, 0, 0.350187272, 0)
  18. TextBox.Size = UDim2.new(0, 200, 0, 50)
  19. TextBox.Font = Enum.Font.SourceSans
  20. TextBox.Text = ""
  21. TextBox.TextColor3 = Color3.new(0, 0, 0)
  22. TextBox.TextSize = 14
  23.  
  24. TextButton.Parent = ScreenGui
  25. TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
  26. TextButton.Position = UDim2.new(0, 0, 0.539325833, 0)
  27. TextButton.Size = UDim2.new(0, 200, 0, 50)
  28. TextButton.Font = Enum.Font.SourceSans
  29. TextButton.Text = "Destroy()"
  30. TextButton.TextColor3 = Color3.new(0, 0, 0)
  31. TextButton.TextSize = 14
  32. game.Players.LocalPlayer.PlayerGui.ScreenGui.TextButton.MouseButton1Click:Connect(function()
  33.     workspace[game.Players.LocalPlayer.PlayerGui.ScreenGui.TextBox.Text].Humanoid:Destroy()
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement