function FlagStandManager.Init(e,E)local Z={}local B,J=pcall(function()Z.AtSpawn=true Z.PickedUp=false Z.TeamColor=E.FlagStand.BrickColor Z.Flag=E.Flag Z.FlagPole=E.Flag.FlagPole Z.FlagBanner=E.Flag.FlagBanner Z.FlagBase=E.FlagStand Z.FlagCopy=E.Flag:Clone()Z.FlagContainer=E end)if not B then warn("\070\108\097\103 \111\098\106\101\099\116 \110\111\116 \098\117\105\108\116 \099\111\114\114\101\099\116\108\121\046 \080\108\101\097\115\101 \108\111\097\100 \102\114\101\115\104 \116\101\109\112\108\097\116\101 \116\111 \115\101\101 \104\111\119 \102\108\097\103 \115\116\097\110\100 \105\115 \101\120\112\101\099\116\101\100 \116\111 \098\101 \109\097\100\101\046")end BindBaseTouched(Z)DestroyFlag(Z)MakeFlag(Z)table.insert(FlagObjects,Z)end
-- Public Functions
function FlagStandManager:Init(container)
	local flagObject = {}

	local success, message = pcall(function()
		flagObject.AtSpawn = true
		flagObject.PickedUp = false
		flagObject.TeamColor = container.FlagStand.BrickColor
		flagObject.Flag = container.Flag
		flagObject.FlagPole = container.Flag.FlagPole
		flagObject.FlagBanner = container.Flag.FlagBanner
		flagObject.FlagBase = container.FlagStand
		flagObject.FlagCopy = container.Flag:Clone()
		flagObject.FlagContainer = container
	end)
	if not success then
		warn(
			"Flag object not built correctly. Please load fresh template to see how flag stand is expected to be made."
		)
	end

	BindBaseTouched(flagObject)
	DestroyFlag(flagObject)
	MakeFlag(flagObject)

	table.insert(FlagObjects, flagObject)
end
