Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Team System
- -- what this does is handle teams and create them.
- -- also supports locking the teams thru remotes so nobody enters a clan
- -- (unless exploited but hackers will only join client-side)
- -- Define remotes and stuff so we can call.
- local SS = game.ServerStorage
- local RS = game.ReplicatedStorage
- -- some remotes we will need
- local JoinClan = RS.ClanJoin
- local LeaveClan = RS.ClanLeave
- local AdminJoinClan = RS.AdminClanJoin
- local CreateClan = RS.ClanCreate
- -- handle join
- JoinClan.Event:Connect(function(plr, password, teamname)
- end)
- -- handle create
- CreateClan.Event:Connect(function(plr, password, teamname, islocked)
- -- if you are running this in Finobe please turn the crappy filter off by typing true
- local Finobe = true
- local filteredMessage=""
- if(Finobe == false) then
- local textService = game:GetService("TextService")
- filteredMessage = textService:FilterStringForBroadcast(teamname, plr)
- else
- filteredMessage = teamname
- end
- local Team = Instance.new("Team")
- Team.Parent = game.Teams
- Team.Name = filteredMessage
- print("Server: Clan Name - "..Team.Name)
- print("Server: Parent - "..tostring(Team.Parent))
- if(islocked == true) then
- local Code = Instance.new("StringValue")
- Code.Value = password
- Code.Name = "pass"
- Code.Parent = Team
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement