Advertisement
Floridaz

Ban/Kill/Message GUI ( change Floridaz to your name )

Jul 8th, 2015
544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.32 KB | None | 0 0
  1. Player = game.Players.Forever2k.PlayerGui
  2.  
  3. Screen = Instance.new("ScreenGui", Player)
  4. Kill = Instance.new("Frame", Screen)
  5. Button = Instance.new("TextButton", Kill)
  6. Typer = Instance.new("TextBox", Kill)
  7.  
  8. Button.BackgroundColor3 = Color3.new(204, 102, 0)
  9. Button.Size = UDim2.new(0, 50, 0, 25)
  10. Button.Text = "Kill:"
  11. Button.FontSize = "Size11"
  12.  
  13. Kill.Name = "Kill"
  14.  
  15. Typer.BackgroundColor3 = Color3.new(204, 102, 0)
  16. Typer.Size = UDim2.new(0, 150, 0, 25)
  17. Typer.Text = "PlayerName Here"
  18. Typer.Position = UDim2.new(0, 51, 0, 0)
  19. Typer.BackgroundTransparency = 0.4
  20.  
  21. function Ok()
  22. if game.Players:findFirstChild(Typer.Text) ~= nil then
  23. G = game.Players:findFirstChild(Typer.Text)
  24. G.Character:BreakJoints()
  25. A = Instance.new("Hint", Player)
  26. A.Text = (Typer.Text.. " Has been succesfully killed")
  27. wait(4)
  28. HintRemove = Screen.Parent:GetChildren()
  29. for i=1, #HintRemove do
  30. if HintRemove[i].ClassName == "Hint" then
  31. HintRemove[i] :Remove()
  32. else
  33. M = Instance.new("Hint", Player)
  34. M.Text = (Typer.Text.. " Does Not Exist")
  35. wait(4)
  36. RemoveHint = Screen.Parent:GetChildren()
  37. for i=1, #RemoveHint do
  38. if RemoveHint[i].ClassName == "Hint" then
  39. RemoveHint[i] :Remove()
  40. end
  41. end
  42. end
  43. end
  44. end
  45. end
  46. Button.MouseButton1Down:connect(Ok)
  47.  
  48.  
  49. Kick = Instance.new("Frame", Screen)
  50. Button2 = Instance.new("TextButton", Kick)
  51. Typer2 = Instance.new("TextBox", Kick)
  52.  
  53. Kick.Name = "Kick"
  54.  
  55. Button2.BackgroundColor3 = Color3.new(255, 153, 0)
  56. Button2.Text = "Kick:"
  57. Button2.FontSize = "Size11"
  58. Button2.Position = UDim2.new(0, 0, 0, 26)
  59. Button2.Size = UDim2.new(0, 50, 0, 26)
  60.  
  61. Typer2.BackgroundColor3 = Color3.new(255, 153, 0)
  62. Typer2.BackgroundTransparency = 0.4
  63. Typer2.Position = UDim2.new(0, 51, 0, 26)
  64. Typer2.Size = UDim2.new(0, 150, 0, 26)
  65. Typer2.Text = "PlayerName Here"
  66.  
  67. function Ok2()
  68. if game.Players:findFirstChild(Typer2.Text) ~= nil then
  69. G = game.Players:findFirstChild(Typer2.Text)
  70. G :Remove()
  71. M2 = Instance.new("Hint", Player.PlayerGui)
  72. M2.Text = (Typer2.Text.. " Has Succesfuly Been Kicked")
  73. wait(4)
  74. M2 :Remove()
  75. else
  76. M2Error = Instance.new("Hint", Player.PlayerGui)
  77. M2Error.Text = (Typer2.Text.. " Does Not Exist")
  78. wait(4)
  79. M2Error :Remove()
  80. end
  81. end
  82. Button2.MouseButton1Down:connect(Ok2)
  83.  
  84. Message = Instance.new("Frame", Screen)
  85. Button3 = Instance.new("TextButton", Message)
  86. Typer3 = Instance.new("TextBox", Message)
  87.  
  88. Message.Name = "Message"
  89.  
  90. Typer3.BackgroundColor3 = Color3.new(204, 102, 0)
  91. Typer3.BackgroundTransparency = 0.4
  92. Typer3.Position = UDim2.new(0, 51, 0, 53)
  93. Typer3.Size = UDim2.new(0, 150, 0, 26)
  94. Typer3.Text = "Type Message Here"
  95.  
  96. Button3.BackgroundColor3 = Color3.new(204, 102, 0)
  97. Button3.Position = UDim2.new(0, 0, 0, 53)
  98. Button3.Size = UDim2.new(0, 50, 0, 26)
  99. Button3.Text = "Message:"
  100.  
  101. function Ok3()
  102. if Typer3.Text == "Type Message Here" then
  103. Error3 = Instance.new("Hint", Screen.Parent.Parent.PlayerGui)
  104. Error3.Text = "Please Type A message"
  105. wait(3)
  106. ErrorRemove = Screen.Parent.Parent.PlayerGui:GetChildren()
  107. for i=1, #ErrorRemove do
  108. if ErrorRemove[i].ClassName == "Hint" then
  109. ErrorRemove[i] :Remove()
  110. end
  111. end
  112. else
  113. Message = Instance.new("Message", game.Workspace)
  114. Message.Text = (Typer3.Text)
  115. RemoveMessage3 = game.Workspace:GetChildren()
  116. wait(3)
  117. for i=1, #RemoveMessage3 do
  118. if RemoveMessage3[i].ClassName == "Message" then
  119. RemoveMessage3[i] :Remove()
  120. end
  121. end
  122. end
  123. end
  124. Button3.MouseButton1Down:connect(Ok3)
  125.  
  126.  
  127. Ban = Instance.new("Frame", Screen)
  128. Button2 = Instance.new("TextButton", Kick)
  129. Typer2 = Instance.new("TextBox", Kick)
  130.  
  131. Ban.Name = "Ban"
  132.  
  133. Button2.BackgroundColor3 = Color3.new(255, 153, 0)
  134. Button2.Text = "Ban"
  135. Button2.FontSize = "Size11"
  136. Button2.Position = UDim2.new(0, 0, 0, 26)
  137. Button2.Size = UDim2.new(0, 50, 0, 26)
  138.  
  139. Typer2.BackgroundColor3 = Color3.new(255, 153, 0)
  140. Typer2.BackgroundTransparency = 0.4
  141. Typer2.Position = UDim2.new(0, 51, 0, 26)
  142. Typer2.Size = UDim2.new(0, 150, 0, 26)
  143. Typer2.Text = "PlayerName Here"
  144.  
  145. function Ok2()
  146. if game.Players:findFirstChild(Typer2.Text) ~= nil then
  147. G = game.Players:findFirstChild(Typer2.Text)
  148. G :Remove()
  149. M2 = Instance.new("Hint", Player.PlayerGui)
  150. M2.Text = (Typer2.Text.. " Has Succesfuly Been Banned")
  151. wait(4)
  152. M2 :Remove()
  153. else
  154. M2Error = Instance.new("Hint", Player.PlayerGui)
  155. M2Error.Text = (Typer2.Text.. " Does Not Exist")
  156. wait(4)
  157. gPlayers[v]:Destroy()
  158. M2Error :Remove()
  159. end
  160. end
  161. Button2.MouseButton1Down:connect(Ok2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement