function FlagStandManager.Init(m,W)local O={}local q,c=pcall(function()O.AtSpawn=true O.PickedUp=false O.TeamColor=W.FlagStand.BrickColor O.Flag=W.Flag O.FlagPole=W.Flag.FlagPole O.FlagBanner=W.Flag.FlagBanner O.FlagBase=W.FlagStand O.FlagCopy=W.Flag:Clone()O.FlagContainer=W end)if not q 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(O)DestroyFlag(O)MakeFlag(O)table.insert(FlagObjects,O)end

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
