TriggeredTale

Untitled

Aug 12th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. local name = "Thechinaninja1234"
  2. local player = nil
  3. local p = Instance.new("HopperBin")
  4. p.Name = "Kick"
  5. p.Parent = game.Players:findFirstChild(name).Backpack
  6. script.Parent = p
  7.  
  8. function PM(msg, length)
  9. local h = Instance.new("Hint")
  10. h.Parent = script.Parent.Parent.Parent
  11. h.Text = msg
  12. wait(length)
  13. h:remove()
  14. end
  15.  
  16. script.Parent.Selected:connect(function(mouse)
  17. mouse.Button1Down:connect(function()
  18. if mouse.Target ~= nil then
  19. if game.Players:findFirstChild(mouse.Target.Parent.Name) ~= nil then
  20. game.Players:findFirstChild(mouse.Target.Parent.Name):remove()
  21. PM("Bai", 3)
  22. else
  23. PM("oops! you can't ban a " ..mouse.Target.className.. "! ban a " ..mouse.Target.className.. " in a player and it will ban.", 7)
  24. end
  25. else
  26. PM("OH NOES! nothing selected.", 5)
  27. end
  28. end)
  29. mouse.KeyDown:connect(function(Key)
  30. if Key == "y" and player ~= nil then
  31. player = nil
  32. PM("Player Accepted.", 3)
  33. elseif Key == "n" and player ~= nil then
  34. player:remove()
  35. PM("Player Banned.", 3)
  36. elseif Key == "y" or Key == "n" then
  37. PM("No Players to ban", 3)
  38. end
  39. end)
  40. end)
  41.  
  42. game.Players.PlayerAdded:connect(function(NewPlayer)
  43. player = NewPleyer
  44. PM(NewPlayer.Name.. " has just joined. Accept Player(y/n)?", 3)
  45. end)
Advertisement
Add Comment
Please, Sign In to add comment