game.ReplicatedStorage.deleteGang.OnServerEvent:Connect(function(plr, gangName)
for i, v in pairs(game.Players:GetChildren()) do
if v.gangSystem.gangName.Value == plr.gangSystem.gangName.Value then
v.gangSystem.gangName.Value = ""
v.gangSystem.isOwner.Value = false
v.gangSystem.gangColour.Value = Color3.new()
v.gangSystem.isInGang.Value = false
game.Workspace:FindFirstChild(v.Name).Head.gangGUI:Destroy()
game.Workspace:FindFirstChild(v.Name).Head.usernameGUI.TextLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
end
end
end)
does any type of error appear?
if it does what does it say?
also i suggest where you use in pairs(game.Players:GetChildren())
to make it into in pairs(game.Players:GetPlayers())
because it could get non player instances but thats up to you
perhaps if there are no errors and there is the same output with GetPlayers() then
the place where you check “if then” skips the part of some people
have you checked that the result of “true” is on the “if then” for each player?