How can i manage to make a party system aka squad system, tried few things but didnt work ;-;
COMMUNITY QUESTION
[Question] Squad System/Party System?
1 answer
Squad Creation Script
local squad = Instance.new("Folder") -- store squad members
squad.Parent = workspace.Squads -- store all squads
squad.Name = "Squad1" -- squad name, let players or script assign it
local members = {"A","B","C","D"} -- members(use your method of finding them)
for i = 1,#members do
local newMem = Instance.new(BoolValue,squad)
newMem.Name = members[i]
end
Other Scripts Interactions With Squad Example
local squad = "Squad1" -- squad player belongs to
local list = workspace.Squads:FindFirstChild(squad):GetChildren() -- get squad members
for i = 1,#list do -- go through all squad members
workspace:FindFirstChild(list[i]).Head:remove() -- execute squad
end
Script above is an example of how to find players in the squad so you can avoid them in damage scripts, exp/rewards scripts, etc.
This is a simple way to make a squad based system, you could also just tag each player then when searching through them store players with your squad tag in a table and begin script, there's many ways to go about this.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
That's a broad question and not very explanatory. If you simply want a gui telling who you're grouped with use tables or physical folders which store which players are in group than do a for loop to create the gui.