local E={Id="\082\101\109\111\118\101\070\111\114\099\101\102\105\101\108\100",Aliases={"\117\110\102\102";"\117\110\102\111\114\099\101\102\105\101\108\100"};Description="\082\101\109\111\118\101\115 \097\108\108 \102\111\114\099\101\102\105\101\108\100\115 \116\104\097\116 \097\114\101 \111\110 \112\108\097\121\101\114\115\' \099\104\097\114\097\099\116\101\114\115\046";Args={{Type="\112\108\097\121\101\114\115",Name="\080\108\097\121\101\114\115",Description="\084\104\101 \112\108\097\121\101\114\115 \116\111 \114\101\109\111\118\101 \102\111\114\099\101\102\105\101\108\100\115 \102\114\111\109"}}}function E.RunServer(E,Y)for E,Y in pairs(Y)do local O=Y.Character if O then for E,Y in pairs(O:GetChildren())do if Y.ClassName=="\070\111\114\099\101\070\105\101\108\100"then Y:Destroy()end end end end return("\082\101\109\111\118\101\100 \097\108\108 \102\111\114\099\101\102\105\101\108\100\115 \111\110 \037\100 \112\108\097\121\101\114\115\046"):format(#Y)end return E
local RemoveForcefieldCommand = {
	Id = "RemoveForcefield",
	Aliases = { "unff", "unforcefield" },
	Description = "Removes all forcefields that are on players' characters.",
	Args = {
		{
			Type = "players",
			Name = "Players",
			Description = "The players to remove forcefields from"
		}
	}
}

function RemoveForcefieldCommand.RunServer(_, players)
	for _, player in pairs(players) do
		local character = player.Character
		if character then
			for _, child in pairs(character:GetChildren()) do
				if child.ClassName == "ForceField" then
					child:Destroy()
				end
			end
		end
	end

	return ("Removed all forcefields on %d players."):format(#players)
end

return RemoveForcefieldCommand