Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. groupBan = {[3253661] = '[No Reason Provided]'}
  2. groupTeams = {
  3. [0] = "Slime green",
  4. [0] = "Slime green",
  5. [0] = "Slime green"}
  6. game.Players.PlayerAdded:connect(function(plr)
  7. if plr.AccountAge <5 and plr.UserId > 0 then --Change the 40 to the amount of days the account has to be old enough to join--
  8. plr:Kick("Account Age Too Young")
  9. else
  10. for i,v in pairs (groupBan) do
  11. if plr:IsInGroup(i) then
  12. local group = game:GetService("GroupService"):GetGroupInfoAsync(i)
  13. plr:Kick('Your group, the '..group.Name..' owned by '..group.Owner.Name.. ' is blacklisted from the game on the grounds of '..v.. '!')
  14. return
  15. end
  16. end
  17. for i, v in pairs (groupTeams) do
  18. if plr:IsInGroup(i) then
  19. plr.TeamColor = BrickColor.new(v)
  20. end
  21. end
  22. plr.CharacterAdded:connect(function (Char)
  23. local PlayerTeam
  24. for i,v in pairs (game:GetService("Teams"):GetTeams()) do
  25. if v.TeamColor == plr.TeamColor then
  26. for i,t in pairs (v:GetChildren()) do
  27. if t:IsA("Tool") then
  28. local Clone = t:Clone()
  29. Clone.Parent = plr.Backpack
  30. end
  31. end
  32. end
  33. end
  34. end)
  35. plr:LoadCharacter()
  36. end
  37. end)
  38.  
  39. --Scripted by AviJxsh-- <-This dude tho smh
  40. --Uploaded by Oscar975--
  41. --[[
  42. Renamed this script to 'PlayerJoin'
  43. from AccountAge.
  44.  
  45. Changed the :remove() to :Kick()
  46. because that is the proper function
  47. and remove is deprecated.
  48.  
  49. I also merged the auto-team for BoS
  50. script, the banned groups script, and
  51. the second group team into here.
  52. into here in order to make the SSS
  53. less crowded with misc. scripts.
  54.  
  55. Not the most efficient scripting
  56. but that's what you get when you
  57. splice scripts together rather than
  58. making your own. My fault. I'll make
  59. a new one someday.
  60. -Tri
  61. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement