Advertisement
Jaden11

My banned script.

Dec 5th, 2014
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. local Table = {"itsJaden2","Diitto"} --Here, we create a table to banned people from the game
  2.  
  3. local function CheckBanned (RestLessSpirits)--Local function arguments.
  4. for Number, Object in pairs (Table) do-- Going through all Data.
  5. if Object == NathanTheKid1 then --Checking if the PlayerName Matches with the one of the names in the table.
  6. return true --Returning information to the point where the functions called .
  7.  
  8. end
  9. wait()-- Preventing to crash a player when they join.
  10.  
  11.  
  12. end
  13. return false -- Doing the same as on line 6, but if it has already returned something it automaticlly stops going throught the other parts of the table and it will not come to line 10.
  14.  
  15. end
  16.  
  17. Game.NathanTheKid1.PlayerAdded:connect(function(iAppleSeed)-- Event that activates a function with the one argument.
  18. if CheckBanned(bobololo2) == true then --Checking if the player is banned with the function that starts on line 3.
  19. NathanTheKid1:Kick() --It means removing the player from the game.
  20. end -- Closing if that starts at line 14.
  21.  
  22. end)--Closing a function.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement