<roblox xmlns:xmime="http://www.w3.org/2005/05/xmlmime" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.roblox.com/roblox.xsd" version="4">
	<External>null</External>
	<External>nil</External>
	<Item class="Workspace" referent="RBX0">
		<Properties>
			<token name="Controller">0</token>
			<bool name="ControllerFlagShown">true</bool>
			<Ref name="CurrentCamera">RBX1</Ref>
			<CoordinateFrame name="ModelInPrimary">
				<X>0</X>
				<Y>0</Y>
				<Z>0</Z>
				<R00>1</R00>
				<R01>0</R01>
				<R02>0</R02>
				<R10>0</R10>
				<R11>1</R11>
				<R12>0</R12>
				<R20>0</R20>
				<R21>0</R21>
				<R22>1</R22>
			</CoordinateFrame>
			<string name="Name">Workspace</string>
			<Ref name="PrimaryPart">RBX2</Ref>
			<bool name="archivable">true</bool>
		</Properties>
		<Item class="Camera" referent="RBX3">
			<Properties>
				<Ref name="CameraSubject">null</Ref>
				<token name="CameraType">0</token>
				<CoordinateFrame name="CoordinateFrame">
					<X>0</X>
					<Y>0</Y>
					<Z>0</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>0</R12>
					<R20>0</R20>
					<R21>0</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<CoordinateFrame name="Focus">
					<X>0</X>
					<Y>0</Y>
					<Z>-5</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>0</R12>
					<R20>0</R20>
					<R21>0</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<string name="Name">Camera</string>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
		<Item class="Part" referent="RBX2">
			<Properties>
				<bool name="Anchored">true</bool>
				<float name="BackParamA">-0.5</float>
				<float name="BackParamB">0.5</float>
				<token name="BackSurface">0</token>
				<token name="BackSurfaceInput">0</token>
				<float name="BottomParamA">-0.5</float>
				<float name="BottomParamB">0.5</float>
				<token name="BottomSurface">0</token>
				<token name="BottomSurfaceInput">0</token>
				<int name="BrickColor">28</int>
				<CoordinateFrame name="CFrame">
					<X>0</X>
					<Y>0.200000048</Y>
					<Z>0</Z>
					<R00>1</R00>
					<R01>0</R01>
					<R02>0</R02>
					<R10>0</R10>
					<R11>1</R11>
					<R12>0</R12>
					<R20>0</R20>
					<R21>0</R21>
					<R22>1</R22>
				</CoordinateFrame>
				<bool name="CanCollide">true</bool>
				<token name="Controller">0</token>
				<bool name="ControllerFlagShown">true</bool>
				<bool name="DraggingV1">false</bool>
				<float name="Elasticity">0.5</float>
				<token name="FormFactor">2</token>
				<float name="Friction">0.300000012</float>
				<float name="FrontParamA">-0.5</float>
				<float name="FrontParamB">0.5</float>
				<token name="FrontSurface">0</token>
				<token name="FrontSurfaceInput">0</token>
				<float name="LeftParamA">-0.5</float>
				<float name="LeftParamB">0.5</float>
				<token name="LeftSurface">0</token>
				<token name="LeftSurfaceInput">0</token>
				<bool name="Locked">true</bool>
				<string name="Name">Base</string>
				<float name="Reflectance">0</float>
				<float name="RightParamA">-0.5</float>
				<float name="RightParamB">0.5</float>
				<token name="RightSurface">0</token>
				<token name="RightSurfaceInput">0</token>
				<Vector3 name="RotVelocity">
					<X>0</X>
					<Y>0</Y>
					<Z>0</Z>
				</Vector3>
				<float name="TopParamA">-0.5</float>
				<float name="TopParamB">0.5</float>
				<token name="TopSurface">3</token>
				<token name="TopSurfaceInput">0</token>
				<float name="Transparency">0</float>
				<Vector3 name="Velocity">
					<X>0</X>
					<Y>0</Y>
					<Z>0</Z>
				</Vector3>
				<bool name="archivable">true</bool>
				<token name="shape">1</token>
				<Vector3 name="size">
					<X>512</X>
					<Y>0.400000006</Y>
					<Z>512</Z>
				</Vector3>
			</Properties>
		</Item>
		<Item class="Camera" referent="RBX1">
			<Properties>
				<Ref name="CameraSubject">RBX4</Ref>
				<token name="CameraType">5</token>
				<CoordinateFrame name="CoordinateFrame">
					<X>-4.24753523</X>
					<Y>9.15680504</Y>
					<Z>40.5961914</Z>
					<R00>0.962622106</R00>
					<R01>0.0709647313</R01>
					<R02>-0.261386007</R02>
					<R10>5.96046448e-008</R10>
					<R11>0.965065241</R11>
					<R12>0.26200965</R12>
					<R20>0.270848006</R20>
					<R21>-0.252216309</R21>
					<R22>0.928993165</R22>
				</CoordinateFrame>
				<CoordinateFrame name="Focus">
					<X>8.64365121e-019</X>
					<Y>4.89913464</Y>
					<Z>25.5</Z>
					<R00>-1</R00>
					<R01>-3.94919572e-021</R01>
					<R02>-1.25356378e-020</R02>
					<R10>-3.94919572e-021</R10>
					<R11>1</R11>
					<R12>5.46855969e-021</R12>
					<R20>1.25356378e-020</R20>
					<R21>5.46855969e-021</R21>
					<R22>-1</R22>
				</CoordinateFrame>
				<string name="Name">Instance</string>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
		<External>RBX5</External>
		<Item class="Script" referent="RBX6">
			<Properties>
				<bool name="Disabled">false</bool>
				<Content name="LinkedSource"><null></null></Content>
				<string name="Name">Leaderboard</string>
				<string name="Source">print(&quot;LinkedLeaderboard script version 5.00 loaded&quot;)&#13;&#10;&#13;&#10;stands = {}&#13;&#10;CTF_mode = false&#13;&#10;&#13;&#10;&#13;&#10;function onHumanoidDied(humanoid, player)&#13;&#10;&#9;local stats = player:findFirstChild(&quot;leaderstats&quot;)&#13;&#10;&#9;if stats ~= nil then&#13;&#10;&#9;&#9;local deaths = stats:findFirstChild(&quot;Wipeouts&quot;)&#13;&#10;&#9;&#9;deaths.Value = deaths.Value + 1&#13;&#10;&#13;&#10;&#9;&#9;-- do short dance to try and find the killer&#13;&#10;&#13;&#10;&#9;&#9;local killer = getKillerOfHumanoidIfStillInGame(humanoid)&#13;&#10;&#13;&#10;&#9;&#9;handleKillCount(humanoid, player)&#13;&#10;&#9;end&#13;&#10;end&#13;&#10;&#13;&#10;function onPlayerRespawn(property, player)&#13;&#10;&#9;-- need to connect to new humanoid&#13;&#10;&#9;&#13;&#10;&#9;if property == &quot;Character&quot; and player.Character ~= nil then&#13;&#10;&#9;&#9;local humanoid = player.Character.Humanoid&#13;&#10;&#9;&#9;&#9;local p = player&#13;&#10;&#9;&#9;&#9;local h = humanoid&#13;&#10;&#9;&#9;&#9;humanoid.Died:connect(function() onHumanoidDied(h, p) end )&#13;&#10;&#9;end&#13;&#10;end&#13;&#10;&#13;&#10;function getKillerOfHumanoidIfStillInGame(humanoid)&#13;&#10;&#9;-- returns the player object that killed this humanoid&#13;&#10;&#9;-- returns nil if the killer is no longer in the game&#13;&#10;&#13;&#10;&#9;-- check for kill tag on humanoid - may be more than one - todo: deal with this&#13;&#10;&#9;local tag = humanoid:findFirstChild(&quot;creator&quot;)&#13;&#10;&#13;&#10;&#9;-- find player with name on tag&#13;&#10;&#9;if tag ~= nil then&#13;&#10;&#9;&#9;&#13;&#10;&#9;&#9;local killer = tag.Value&#13;&#10;&#9;&#9;if killer.Parent ~= nil then -- killer still in game&#13;&#10;&#9;&#9;&#9;return killer&#13;&#10;&#9;&#9;end&#13;&#10;&#9;end&#13;&#10;&#13;&#10;&#9;return nil&#13;&#10;end&#13;&#10;&#13;&#10;function handleKillCount(humanoid, player)&#13;&#10;&#9;local killer = getKillerOfHumanoidIfStillInGame(humanoid)&#13;&#10;&#9;if killer ~= nil then&#13;&#10;&#9;&#9;local stats = killer:findFirstChild(&quot;leaderstats&quot;)&#13;&#10;&#9;&#9;if stats ~= nil then&#13;&#10;&#9;&#9;&#9;local kills = stats:findFirstChild(&quot;KOs&quot;)&#13;&#10;&#9;&#9;&#9;if killer ~= player then&#13;&#10;&#9;&#9;&#9;&#9;kills.Value = kills.Value + 1&#13;&#10;&#9;&#9;&#9;&#9;&#13;&#10;&#9;&#9;&#9;else&#13;&#10;&#9;&#9;&#9;&#9;kills.Value = kills.Value - 1&#13;&#10;&#9;&#9;&#9;&#9;&#13;&#10;&#9;&#9;&#9;end&#13;&#10;&#9;&#9;end&#13;&#10;&#9;end&#13;&#10;end&#13;&#10;&#13;&#10;&#13;&#10;-----------------------------------------------&#13;&#10;&#13;&#10;&#13;&#10;&#13;&#10;function findAllFlagStands(root)&#13;&#10;&#9;local c = root:children()&#13;&#10;&#9;for i=1,#c do&#13;&#10;&#9;&#9;if (c[i].className == &quot;Model&quot; or c[i].className == &quot;Part&quot;) then&#13;&#10;&#9;&#9;&#9;findAllFlagStands(c[i])&#13;&#10;&#9;&#9;end&#13;&#10;&#9;&#9;if (c[i].className == &quot;FlagStand&quot;) then&#13;&#10;&#9;&#9;&#9;table.insert(stands, c[i])&#13;&#10;&#9;&#9;end&#13;&#10;&#9;end&#13;&#10;end&#13;&#10;&#13;&#10;function hookUpListeners()&#13;&#10;&#9;for i=1,#stands do&#13;&#10;&#9;&#9;stands[i].FlagCaptured:connect(onCaptureScored)&#13;&#10;&#9;end&#13;&#10;end&#13;&#10;&#13;&#10;function onPlayerEntered(newPlayer)&#13;&#10;&#13;&#10;&#9;if CTF_mode == true then&#13;&#10;&#13;&#10;&#9;&#9;local stats = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;stats.Name = &quot;leaderstats&quot;&#13;&#10;&#13;&#10;&#9;&#9;local captures = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;captures.Name = &quot;Captures&quot;&#13;&#10;&#9;&#9;captures.Value = 0&#13;&#10;&#13;&#10;&#13;&#10;&#9;&#9;captures.Parent = stats&#13;&#10;&#13;&#10;&#9;&#9;local stats = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;stats.Name = &quot;leaderstats&quot;&#13;&#10;&#13;&#10;&#9;&#9;local kills = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;kills.Name = &quot;KOs&quot;&#13;&#10;&#9;&#9;kills.Value = 0&#13;&#10;&#13;&#10;&#9;&#9;local deaths = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;deaths.Name = &quot;Wipeouts&quot;&#13;&#10;&#9;&#9;deaths.Value = 0&#13;&#10;&#13;&#10;&#9;&#9;kills.Parent = stats&#13;&#10;&#9;&#9;deaths.Parent = stats&#13;&#10;&#13;&#10;&#9;&#9;-- VERY UGLY HACK&#13;&#10;&#9;&#9;-- Will this leak threads?&#13;&#10;&#9;&#9;-- Is the problem even what I think it is (player arrived before character)?&#13;&#10;&#9;&#9;while true do&#13;&#10;&#9;&#9;&#9;if newPlayer.Character ~= nil then break end&#13;&#10;&#9;&#9;&#9;wait(5)&#13;&#10;&#9;&#9;end&#13;&#10;&#13;&#10;&#9;&#9;local humanoid = newPlayer.Character.Humanoid&#13;&#10;&#13;&#10;&#9;&#9;humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end )&#13;&#10;&#13;&#10;&#9;&#9;-- start to listen for new humanoid&#13;&#10;&#9;&#9;newPlayer.Changed:connect(function(property) onPlayerRespawn(property, newPlayer) end )&#13;&#10;&#13;&#10;&#13;&#10;&#9;&#9;stats.Parent = newPlayer&#13;&#10;&#13;&#10;&#9;else&#13;&#10;&#13;&#10;&#9;&#9;local stats = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;stats.Name = &quot;leaderstats&quot;&#13;&#10;&#13;&#10;&#9;&#9;local kills = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;kills.Name = &quot;KOs&quot;&#13;&#10;&#9;&#9;kills.Value = 0&#13;&#10;&#13;&#10;&#9;&#9;local deaths = Instance.new(&quot;IntValue&quot;)&#13;&#10;&#9;&#9;deaths.Name = &quot;Wipeouts&quot;&#13;&#10;&#9;&#9;deaths.Value = 0&#13;&#10;&#13;&#10;&#9;&#9;kills.Parent = stats&#13;&#10;&#9;&#9;deaths.Parent = stats&#13;&#10;&#13;&#10;&#9;&#9;-- VERY UGLY HACK&#13;&#10;&#9;&#9;-- Will this leak threads?&#13;&#10;&#9;&#9;-- Is the problem even what I think it is (player arrived before character)?&#13;&#10;&#9;&#9;while true do&#13;&#10;&#9;&#9;&#9;if newPlayer.Character ~= nil then break end&#13;&#10;&#9;&#9;&#9;wait(5)&#13;&#10;&#9;&#9;end&#13;&#10;&#13;&#10;&#9;&#9;local humanoid = newPlayer.Character.Humanoid&#13;&#10;&#13;&#10;&#9;&#9;humanoid.Died:connect(function() onHumanoidDied(humanoid, newPlayer) end )&#13;&#10;&#13;&#10;&#9;&#9;-- start to listen for new humanoid&#13;&#10;&#9;&#9;newPlayer.Changed:connect(function(property) onPlayerRespawn(property, newPlayer) end )&#13;&#10;&#13;&#10;&#13;&#10;&#9;&#9;stats.Parent = newPlayer&#13;&#10;&#13;&#10;&#9;end&#13;&#10;&#13;&#10;end&#13;&#10;&#13;&#10;&#13;&#10;function onCaptureScored(player)&#13;&#10;&#13;&#10;&#9;&#9;local ls = player:findFirstChild(&quot;leaderstats&quot;)&#13;&#10;&#9;&#9;if ls == nil then return end&#13;&#10;&#9;&#9;local caps = ls:findFirstChild(&quot;Captures&quot;)&#13;&#10;&#9;&#9;if caps == nil then return end&#13;&#10;&#9;&#9;caps.Value = caps.Value + 1&#13;&#10;&#13;&#10;end&#13;&#10;&#13;&#10;&#13;&#10;findAllFlagStands(game.Workspace)&#13;&#10;hookUpListeners()&#13;&#10;if (#stands &gt; 0) then CTF_mode = true end&#13;&#10;game.Players.ChildAdded:connect(onPlayerEntered)&#13;&#10;&#13;&#10;&#13;&#10;</string>
				<bool name="archivable">true</bool>
			</Properties>
		</Item>
	</Item>
	<Item class="RunService" referent="RBX7">
		<Properties>
			<string name="Name">Run Service</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<External>RBX8</External>
	<External>RBX9</External>
	<Item class="Players" referent="RBX10">
		<Properties>
			<int name="MaxPlayers">8</int>
			<string name="Name">Players</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="StarterPack" referent="RBX11">
		<Properties>
			<string name="Name">StarterPack</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="SoundService" referent="RBX12">
		<Properties>
			<token name="AmbientReverb">0</token>
			<float name="DistanceFactor">10</float>
			<float name="DopplerScale">1</float>
			<string name="Name">SoundService</string>
			<float name="RolloffScale">1</float>
			<bool name="archivable">true</bool>
		</Properties>
		<External>RBX13</External>
		<External>RBX14</External>
		<External>RBX15</External>
		<External>RBX16</External>
		<External>RBX17</External>
		<External>RBX18</External>
		<External>RBX19</External>
		<External>RBX20</External>
		<External>RBX21</External>
		<External>RBX22</External>
		<External>RBX23</External>
		<External>RBX24</External>
		<External>RBX25</External>
		<External>RBX26</External>
	</Item>
	<Item class="Selection" referent="RBX27">
		<Properties>
			<string name="Name">Selection</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="Lighting" referent="RBX28">
		<Properties>
			<Color3 name="BottomAmbientV9">4286221432</Color3>
			<Color3 name="ClearColor">4278190080</Color3>
			<float name="GeographicLatitude">41.7332993</float>
			<string name="Name">Lighting</string>
			<Color3 name="SpotLightV9">4288581478</Color3>
			<string name="TimeOfDay">14:00:00</string>
			<Color3 name="TopAmbientV9">4292335327</Color3>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="ControllerService" referent="RBX29">
		<Properties>
			<string name="Name">Instance</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<Item class="Timer" referent="RBX30">
		<Properties>
			<string name="Name">Instance</string>
			<bool name="archivable">true</bool>
		</Properties>
	</Item>
	<External>RBX31</External>
</roblox>