Advertisement
V3rmLua33

Ban

Mar 10th, 2015
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.13 KB | None | 0 0
  1. function Kick(Player) Instance.new("RemoteEvent", Player):FireClient(Player, {[string.rep("Goodbye!",2e5+5)] = "Kicked"}) end
  2.  
  3. function Ban(plrban,reason)
  4.     for k,v in pairs(game.Players:GetChildren()) do
  5.         if v.Name:lower() == plrban:lower() then
  6.             Kick(v)
  7.             for k,v in pairs(game.Players:GetChildren()) do
  8.                 --[[
  9.                 local sg=Instance.new("ScreenGui",v.PlayerGui)
  10.                 local f=Instance.new("Frame",sg)
  11.                 local tl=Instance.new("TextLabel",f)
  12.                 f.Position = UDim2.new(0, 0,-0.1, 0)
  13.                 f.Size = UDim2.new(1, 0,0.09, 0)
  14.                 f.Style = "DropShadow"
  15.                 f.Visible = true
  16.                 tl.BackgroundTransparency = 1
  17.                 tl.Size = UDim2.new(1,0,1,0)
  18.                 tl.FontSize = "Size48"
  19.                 tl.Font = "ArialBold"
  20.                 tl.Text = "Player "..plrban.." has been kicked beacuse of "..reason
  21.                 tl.TextWrapped = true
  22.                 f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
  23.                 wait(3)
  24.                 f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
  25.                 ]]
  26.             end
  27.         end
  28.     end
  29.     game.Players.PlayerAdded:connect(function(plr)
  30.         if plr.Name:lower() == plrban:lower() then
  31.             print'wdsssdawd'
  32.             Kick(plr)
  33.             for k,v in pairs(game.Players:GetChildren()) do
  34.                 --[[
  35.                 local sg=Instance.new("ScreenGui",v.PlayerGui)
  36.                 local f=Instance.new("Frame",sg)
  37.                 local tl=Instance.new("TextLabel",f)
  38.                 f.Position = UDim2.new(0, 0,-0.1, 0)
  39.                 f.Size = UDim2.new(1, 0,0.09, 0)
  40.                 f.Style = "DropShadow"
  41.                 f.Visible = true
  42.                 tl.BackgroundTransparency = 1
  43.                 tl.Size = UDim2.new(1,0,1,0)
  44.                 tl.FontSize = "Size48"
  45.                 tl.Font = "ArialBold"
  46.                 tl.Text = "Player "..plrban.." has been kicked beacuse of "..reason
  47.                 tl.TextWrapped = true
  48.                 f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
  49.                 wait(3)
  50.                 f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
  51.                 ]]
  52.             end
  53.         end
  54.     end)
  55. end
  56.  
  57. Ban("","inappropriate actions/fming")          /
  58. Ban("","fming/Being annoying")                /
  59. Ban("","fming alot")                          --------------PLAYER NAMES HERE
  60. Ban("","Shutdowning alot")                   \
  61. Ban("ninjaswordman2","stole one of my scripts")\
  62.  
  63. game.Players.PlayerAdded:connect(function(plr)
  64.     for k,v in pairs(game.Players:GetChildren()) do
  65.         local sg=Instance.new("ScreenGui",v.PlayerGui)
  66.         local f=Instance.new("Frame",sg)
  67.         local tl=Instance.new("TextLabel",f)
  68.         f.Position = UDim2.new(0, 0,-0.1, 0)
  69.         f.Size = UDim2.new(1, 0,0.09, 0)
  70.         f.Style = "DropShadow"
  71.         f.Visible = true
  72.         tl.BackgroundTransparency = 1
  73.         tl.Size = UDim2.new(1,0,1,0)
  74.         tl.FontSize = "Size48"
  75.         tl.Font = "ArialBold"
  76.         tl.Text = "Player "..plr.Name.." has joined the game!"
  77.         tl.TextWrapped = true
  78.         f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
  79.         wait(3)
  80.         f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
  81.     end
  82. end)
  83.  
  84.  
  85. game.Players.PlayerRemoving:connect(function(plr)
  86.     for k,v in pairs(game.Players:GetChildren()) do
  87.         local sg=Instance.new("ScreenGui",v.PlayerGui)
  88.         local f=Instance.new("Frame",sg)
  89.         local tl=Instance.new("TextLabel",f)
  90.         f.Position = UDim2.new(0, 0,-0.1, 0)
  91.         f.Size = UDim2.new(1, 0,0.09, 0)
  92.         f.Style = "DropShadow"
  93.         f.Visible = true
  94.         tl.BackgroundTransparency = 1
  95.         tl.Size = UDim2.new(1,0,1,0)
  96.         tl.FontSize = "Size48"
  97.         tl.Font = "ArialBold"
  98.         tl.Text = "Player "..plr.Name.." has left the game"
  99.         tl.TextWrapped = true
  100.         f:TweenPosition(UDim2.new(0,0,0,0), "Out", "Back",1,true)
  101.         wait(3)
  102.         f:TweenPosition(UDim2.new(0,0,-0.1,0), "In", "Back",1,nil)
  103.     end
  104. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement