Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- groupBan = {[3253661] = '[No Reason Provided]'}
- groupTeams = {
- [0] = "Slime green",
- [0] = "Slime green",
- [0] = "Slime green"}
- game.Players.PlayerAdded:connect(function(plr)
- 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--
- plr:Kick("Account Age Too Young")
- else
- for i,v in pairs (groupBan) do
- if plr:IsInGroup(i) then
- local group = game:GetService("GroupService"):GetGroupInfoAsync(i)
- plr:Kick('Your group, the '..group.Name..' owned by '..group.Owner.Name.. ' is blacklisted from the game on the grounds of '..v.. '!')
- return
- end
- end
- for i, v in pairs (groupTeams) do
- if plr:IsInGroup(i) then
- plr.TeamColor = BrickColor.new(v)
- end
- end
- plr.CharacterAdded:connect(function (Char)
- local PlayerTeam
- for i,v in pairs (game:GetService("Teams"):GetTeams()) do
- if v.TeamColor == plr.TeamColor then
- for i,t in pairs (v:GetChildren()) do
- if t:IsA("Tool") then
- local Clone = t:Clone()
- Clone.Parent = plr.Backpack
- end
- end
- end
- end
- end)
- plr:LoadCharacter()
- end
- end)
- --Scripted by AviJxsh-- <-This dude tho smh
- --Uploaded by Oscar975--
- --[[
- Renamed this script to 'PlayerJoin'
- from AccountAge.
- Changed the :remove() to :Kick()
- because that is the proper function
- and remove is deprecated.
- I also merged the auto-team for BoS
- script, the banned groups script, and
- the second group team into here.
- into here in order to make the SSS
- less crowded with misc. scripts.
- Not the most efficient scripting
- but that's what you get when you
- splice scripts together rather than
- making your own. My fault. I'll make
- a new one someday.
- -Tri
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement