Advertisement
Migas3456

Name Gui

Oct 1st, 2017
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. -- Objects
  2.  
  3. local ScreenGui = Instance.new("ScreenGui")
  4. local Frame = Instance.new("Frame")
  5. local TextBox = Instance.new("TextBox")
  6. local TextBox_2 = Instance.new("TextBox")
  7. local TextButton = Instance.new("TextButton")
  8.  
  9. -- Properties
  10.  
  11. if game.PlaceId == "843495510,843468296" then
  12. ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
  13. ScreenGui.ResetOnSpawn = false
  14. else
  15. ScreenGui.Parent = game.CoreGui
  16. end
  17.  
  18. Frame.Parent = ScreenGui
  19. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  20. Frame.BackgroundTransparency = 1
  21. Frame.Position = UDim2.new(0, 0, 0, 698)
  22. Frame.Size = UDim2.new(0, 100, 0, 100)
  23.  
  24. TextBox.Parent = Frame
  25. TextBox.BackgroundColor3 = Color3.new(0, 0, 0)
  26. TextBox.BackgroundTransparency = 0.5
  27. TextBox.Size = UDim2.new(0, 100, 0, 24)
  28. TextBox.Font = Enum.Font.SourceSans
  29. TextBox.FontSize = Enum.FontSize.Size14
  30. TextBox.Text = "Username"
  31. TextBox.TextColor3 = Color3.new(0, 1, 1)
  32. TextBox.TextScaled = true
  33. TextBox.TextSize = 14
  34. TextBox.TextWrapped = true
  35.  
  36. TextBox_2.Parent = Frame
  37. TextBox_2.BackgroundColor3 = Color3.new(0, 0, 0)
  38. TextBox_2.BackgroundTransparency = 0.5
  39. TextBox_2.Position = UDim2.new(0, 0, 0, 26)
  40. TextBox_2.Size = UDim2.new(0, 100, 0, 24)
  41. TextBox_2.Font = Enum.Font.SourceSans
  42. TextBox_2.FontSize = Enum.FontSize.Size14
  43. TextBox_2.Text = "Name"
  44. TextBox_2.TextColor3 = Color3.new(0, 1, 1)
  45. TextBox_2.TextScaled = true
  46. TextBox_2.TextSize = 14
  47. TextBox_2.TextWrapped = true
  48.  
  49. TextButton.Parent = Frame
  50. TextButton.BackgroundColor3 = Color3.new(0, 0, 0)
  51. TextButton.BackgroundTransparency = 0.5
  52. TextButton.Position = UDim2.new(0, 0, 0, 76)
  53. TextButton.Size = UDim2.new(0, 100, 0, 24)
  54. TextButton.Font = Enum.Font.SourceSans
  55. TextButton.FontSize = Enum.FontSize.Size14
  56. TextButton.Text = "Execute"
  57. TextButton.TextColor3 = Color3.new(0, 1, 1)
  58. TextButton.TextScaled = true
  59. TextButton.TextSize = 14
  60. TextButton.TextWrapped = true
  61.  
  62. TextButton.MouseButton1Down:connect(function()
  63. local You = (TextBox.Text) local head = workspace[You].Head:Clone() local model = Instance.new("Model",workspace) local humanoid = Instance.new("Humanoid",model) head.Parent = model model.Name = (TextBox_2.Text) humanoid.MaxHealth = 0 local w = Instance.new("Weld",model) w.Part0,w.Part1 = workspace[You].Head,head
  64. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement