I have filtering enabled, and I am using team change gui: In Replicated Storage I have a remote event namerf Team
In ServerScriptService I have this:
game.Players.PlayerAdded:Connect(function(plr) local Clone = game.ServerStorage.ScreenGui:Clone() Clone.Parent = plr.PlayerGui end) -------------------------------Team Changing------------------------ game.ReplicatedStorage.Team.OnServerEvent:Connect(function(plr,Message,Color) local Clone = game.ServerStorage.ScreenGui:Clone() if Message == "Allies/Visitors" then plr.TeamColor = BrickColor.new(Color) plr:LoadCharacter() Clone.Parent = plr.PlayerGui elseif Message == "Hostiles" then plr.TeamColor = BrickColor.new(Color) plr:LoadCharacter() Clone.Parent = plr.PlayerGui elseif Message == "The New Jedi Order" then if plr:IsInGroup(2553878) then plr.TeamColor = BrickColor.new(Color) plr:LoadCharacter() Clone.Parent = plr.PlayerGui end elseif Message == "Temple Security" then local r = plr:GetRoleInGroup(3044259) if (plr:IsInGroup(3044259) and r ~= 'Temple Guard Trainee/Apprentice') or player.UserId == 190899099 then plr.TeamColor = BrickColor.new(Color) plr:LoadCharacter() Clone.Parent = plr.PlayerGui end end end)
In Server Storage, I have a gui, a frame, a couple buttons. The Hostile one has a local script with this inside:
script.Parent.MouseButton1Click:Connect(function() local Fire = game.ReplicatedStorage.Team Fire:FireServer("Hostiles", "Dusty rose") script.Parent.Parent.Visible = false end)
This should work. Every other team works. I have auto-assignable set to Hostile and Allies/Visitors, yet Allies/Visitors works, as well as Temple Security and The New Jedi Order.